ResponseStatusCode class final
Framework\Testing\Constraints\ResponseStatusCode
Class ResponseStatusCode.
Extends PHPUnit\Framework\Constraint\Constraint
Implements:
PHPUnit\Framework\SelfDescribing, Countable
Defined in libraries/testing/src/Constraints/ResponseStatusCode.php
Properties #
- $value
- -
$value
protected mixed $value
Methods #
__construct()
public function __construct(mixed $value)
Parameters
- mixed $value
evaluate()
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
Parameters
- mixed $other
- string $description
- bool $returnResult
Returns
?bool
toString()
public function toString(): string
Returns
string
evaluateSuccess()
private function evaluateSuccess(mixed $other): bool
Parameters
- mixed $other
Returns
bool
Inherited methods #
-
count()fromPHPUnit\Framework\Constraint\Constraint -
matches()fromPHPUnit\Framework\Constraint\Constraint -
fail()fromPHPUnit\Framework\Constraint\Constraint -
additionalFailureDescription()fromPHPUnit\Framework\Constraint\Constraint -
failureDescription()fromPHPUnit\Framework\Constraint\Constraint -
toStringInContext()fromPHPUnit\Framework\Constraint\Constraint -
failureDescriptionInContext()fromPHPUnit\Framework\Constraint\Constraint -
reduce()fromPHPUnit\Framework\Constraint\Constraint -
valueToTypeStringFragment()fromPHPUnit\Framework\Constraint\Constraint