classe Response (Voir la source)

Méthodes

__construct(Parser $parser)

Behovior constructor.

Behavior
assertJson(string $message = '')

Check if the content is json format

Behavior
assertExactJson($data, string $message = '')

Check if the content is json format and the parsed data is some to the content

Behavior
assertContainsExactText(string $data, string $message = '')

Check if the content is some of parse data

Behavior
assertHeader(string $header, string $message = '')

Check if the header exists

Behavior
assertArray(string $message = '')

Check if the content is array format

Behavior
assertContentType($content_type, string $message = '')

Check the content type

Behavior
assertContentTypeJson(string $message = '')

Check if the content type is application/json

Behavior
assertContentTypeText(string $message = '')

Check if the content type is text/plain

Behavior
assertContentTypeHtml(string $message = '')

Check if the content type is text/html

Behavior
assertContentTypeXml(string $message = '')

Check if the content type is text/xml

Behavior
assertStatus(int $code, string $message = '')

Check the status code

Behavior
assertKeyExists($key, string $message = '')

Pas de description

Behavior
assertKeyMatchValue($key, $value, string $message = '')

Pas de description

Behavior
assertContains(string $text)

Check if the content contains the parsed text

string
getContent()

Get the response content

mixed
__call(string $method, array $params = [])

__call

Détails

__construct(Parser $parser)

Behovior constructor.

Paramètres

Parser $parser

Behavior assertJson(string $message = '')

Check if the content is json format

Paramètres

string $message

Valeur de retour

Behavior

Behavior assertExactJson($data, string $message = '')

Check if the content is json format and the parsed data is some to the content

Paramètres

$data
string $message

Valeur de retour

Behavior

Behavior assertContainsExactText(string $data, string $message = '')

Check if the content is some of parse data

Paramètres

string $data
string $message

Valeur de retour

Behavior

Behavior assertHeader(string $header, string $message = '')

Check if the header exists

Paramètres

string $header
string $message

Valeur de retour

Behavior

Behavior assertArray(string $message = '')

Check if the content is array format

Paramètres

string $message

Valeur de retour

Behavior

Behavior assertContentType($content_type, string $message = '')

Check the content type

Paramètres

$content_type
string $message

Valeur de retour

Behavior

Behavior assertContentTypeJson(string $message = '')

Check if the content type is application/json

Paramètres

string $message

Valeur de retour

Behavior

Behavior assertContentTypeText(string $message = '')

Check if the content type is text/plain

Paramètres

string $message

Valeur de retour

Behavior

Behavior assertContentTypeHtml(string $message = '')

Check if the content type is text/html

Paramètres

string $message

Valeur de retour

Behavior

Behavior assertContentTypeXml(string $message = '')

Check if the content type is text/xml

Paramètres

string $message

Valeur de retour

Behavior

Behavior assertStatus(int $code, string $message = '')

Check the status code

Paramètres

int $code
string $message

Valeur de retour

Behavior

Behavior assertKeyExists($key, string $message = '')

Pas de description

Paramètres

$key
string $message

Valeur de retour

Behavior

Behavior assertKeyMatchValue($key, $value, string $message = '')

Pas de description

Paramètres

$key
$value
string $message

Valeur de retour

Behavior

Behavior assertContains(string $text)

Check if the content contains the parsed text

Paramètres

string $text

Valeur de retour

Behavior

string getContent()

Get the response content

Valeur de retour

string

mixed __call(string $method, array $params = [])

__call

Paramètres

string $method
array $params

Valeur de retour

mixed