\Symfony\Component\HttpFoundation\Test\ConstraintResponseFormatSame

Asserts that the response is in the given format.

Summary

Methods
Properties
Constants
__construct()
toString()
No public properties found
No constants found
matches()
failureDescription()
additionalFailureDescription()
No protected properties found
N/A
No private methods found
$request
$format
N/A

Properties

$request

$request

$format

$format

Methods

__construct()

__construct(\Symfony\Component\HttpFoundation\Request  $request, ?string  $format) : mixed

Parameters

\Symfony\Component\HttpFoundation\Request $request
?string $format

Returns

mixed —

toString()

toString() : string

{@inheritdoc}

Returns

string —

matches()

matches(\Symfony\Component\HttpFoundation\Response  $response) : bool

Parameters

\Symfony\Component\HttpFoundation\Response $response

{@inheritdoc}

Returns

bool —

failureDescription()

failureDescription(\Symfony\Component\HttpFoundation\Response  $response) : string

Parameters

\Symfony\Component\HttpFoundation\Response $response

{@inheritdoc}

Returns

string —

additionalFailureDescription()

additionalFailureDescription(\Symfony\Component\HttpFoundation\Response  $response) : string

Parameters

\Symfony\Component\HttpFoundation\Response $response

{@inheritdoc}

Returns

string —