ResponseFormatSame
extends Constraint
in package
Asserts that the response is in the given format.
Tags
Table of Contents
- $format : mixed
- $request : mixed
- __construct() : mixed
- toString() : string
- {@inheritdoc}
- additionalFailureDescription() : string
- failureDescription() : string
- matches() : bool
Properties
$format
private
mixed
$format
$request
private
mixed
$request
Methods
__construct()
public
__construct(Request $request, string|null $format) : mixed
Parameters
- $request : Request
- $format : string|null
Return values
mixed —toString()
{@inheritdoc}
public
toString() : string
Return values
string —additionalFailureDescription()
protected
additionalFailureDescription(Response $response) : string
Parameters
- $response : Response
Return values
string —failureDescription()
protected
failureDescription(Response $response) : string
Parameters
- $response : Response
Return values
string —matches()
protected
matches(Response $response) : bool
Parameters
- $response : Response