\Cake\TestSuite\Constraint\ResponseCookieEquals

CookieEquals

Summary

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

Properties

$cookieName

$cookieName : string

Type

string

Methods

__construct()

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

Constructor.

Parameters

\Cake\Http\Response $response

Response

string $cookieName

Cookie 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.