protected function PHPUnit_Framework_Constraint::failureDescription in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Framework/Constraint.php \PHPUnit_Framework_Constraint::failureDescription()
Returns the description of the failure
The beginning of failure messages is "Failed asserting that" in most cases. This method should return the second part of that sentence.
To provide additional failure information additionalFailureDescription can be used.
Parameters
mixed $other Evaluated value or object.:
Return value
string
2 calls to PHPUnit_Framework_Constraint::failureDescription()
- PHPUnit_Framework_Constraint::fail in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint.php - Throws an exception for the given compared value and test description
- PHPUnit_Framework_Constraint_IsIdentical::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ IsIdentical.php - Returns the description of the failure
17 methods override PHPUnit_Framework_Constraint::failureDescription()
- PHPUnit_Framework_Constraint_ArrayHasKey::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ArrayHasKey.php - Returns the description of the failure
- PHPUnit_Framework_Constraint_ArraySubset::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ArraySubset.php - Returns the description of the failure
- PHPUnit_Framework_Constraint_Attribute::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Attribute.php - Returns the description of the failure
- PHPUnit_Framework_Constraint_ClassHasAttribute::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ClassHasAttribute.php - Returns the description of the failure
- PHPUnit_Framework_Constraint_Count::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Count.php - Returns the description of the failure
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint.php, line 142
Class
- PHPUnit_Framework_Constraint
- Abstract base class for constraints. which are placed upon any value.
Code
protected function failureDescription($other) {
return $this->exporter
->export($other) . ' ' . $this
->toString();
}