\Cake\TestSuite\Constraint\ResponseBodyNotEmpty

BodyNotEmpty

Summary

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

Properties

Methods

matches()

matches(mixed  $other) : boolean

Checks assertion

Parameters

mixed $other

Expected type

Returns

boolean

toString()

toString() : string

Assertion message

Returns

string

__construct()

__construct(\Cake\Http\Response  $response) 

Constructor

Parameters

\Cake\Http\Response $response

Response

failureDescription()

failureDescription(mixed  $other) : string

Overwrites the descriptions so we can remove the automatic "expected" message

Parameters

mixed $other

Value

Returns

string

_getBodyAsString()

_getBodyAsString() : string

Get the response body as string

Returns

string —

The response body.