\Cake\TestSuite\Constraint\ResponseBodyNotRegExp

BodyNotRegExp

Summary

Methods
Properties
Constants
matches()
toString()
failureDescription()
__construct()
No public properties found
No constants found
_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 pattern

Returns

boolean

toString()

toString() : string

Assertion message

Returns

string

failureDescription()

failureDescription(mixed  $other) : string

Parameters

mixed $other

Expected

Returns

string

__construct()

__construct(\Cake\Http\Response  $response) 

Constructor

Parameters

\Cake\Http\Response $response

Response

_getBodyAsString()

_getBodyAsString() : string

Get the response body as string

Returns

string —

The response body.