function Constraint::additionalFailureDescription
Return additional failure description where needed.
The function can be overridden to provide additional failure information like a diff
1 call to Constraint::additionalFailureDescription()
- Constraint::fail in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Constraint.php - Throws an exception for the given compared value and test description.
7 methods override Constraint::additionalFailureDescription()
- CommandIsSuccessful::additionalFailureDescription in vendor/
symfony/ console/ Tester/ Constraint/ CommandIsSuccessful.php - Return additional failure description where needed.
- ResponseFormatSame::additionalFailureDescription in vendor/
symfony/ http-foundation/ Test/ Constraint/ ResponseFormatSame.php - ResponseIsRedirected::additionalFailureDescription in vendor/
symfony/ http-foundation/ Test/ Constraint/ ResponseIsRedirected.php - ResponseIsSuccessful::additionalFailureDescription in vendor/
symfony/ http-foundation/ Test/ Constraint/ ResponseIsSuccessful.php - ResponseIsUnprocessable::additionalFailureDescription in vendor/
symfony/ http-foundation/ Test/ Constraint/ ResponseIsUnprocessable.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Constraint.php, line 118
Class
- Constraint
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Framework\ConstraintCode
protected function additionalFailureDescription(mixed $other) : string {
return '';
}