\Cake\TestSuite\Constraint\ResponseBodyEquals

BodyEquals

Summary

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

Properties

Methods

__construct()

__construct(\Cake\Http\Response  $response) 

Constructor

Parameters

\Cake\Http\Response $response

Response

matches()

matches(mixed  $other) : boolean

Checks assertion

Parameters

mixed $other

Expected type

Returns

boolean

toString()

toString() : string

Assertion message

Returns

string

_getBodyAsString()

_getBodyAsString() : string

Get the response body as string

Returns

string —

The response body.