protected function PHPUnit_Framework_Constraint_ClassHasAttribute::failureDescription in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php \PHPUnit_Framework_Constraint_ClassHasAttribute::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.
Parameters
mixed $other Evaluated value or object.:
Return value
string
Overrides PHPUnit_Framework_Constraint::failureDescription
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ClassHasAttribute.php, line 71
Class
- PHPUnit_Framework_Constraint_ClassHasAttribute
- Constraint that asserts that the class it is evaluated for has a given attribute.
Code
protected function failureDescription($other) {
return sprintf('%sclass "%s" %s', is_object($other) ? 'object of ' : '', is_object($other) ? get_class($other) : $other, $this
->toString());
}