\Cake\TestSuite\Constraint\ResponseHeaderEquals

HeaderEquals

Summary

Methods
Properties
Constants
__construct()
matches()
toString()
No public properties found
No constants found
_getBodyAsString()
$response
$headerName
N/A
No private methods found
No private properties found
N/A

Properties

$headerName

$headerName : string

Type

string

Methods

__construct()

__construct(\Cake\Http\Response  $response, string  $headerName) 

Constructor.

Parameters

\Cake\Http\Response $response

Response

string $headerName

Header name

matches()

matches(mixed  $other) : boolean

Checks assertion

Parameters

mixed $other

Expected content

Returns

boolean

toString()

toString() : string

Assertion message

Returns

string

_getBodyAsString()

_getBodyAsString() : string

Get the response body as string

Returns

string —

The response body.