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.
mixed $other Evaluated value or object.:
string
Overrides PHPUnit_Framework_Constraint::failureDescription
protected function failureDescription($other) {
switch (get_class($this->constraint)) {
case 'PHPUnit_Framework_Constraint_And':
case 'PHPUnit_Framework_Constraint_Not':
case 'PHPUnit_Framework_Constraint_Or':
return 'not( ' . $this->constraint
->failureDescription($other) . ' )';
break;
default:
return self::negate($this->constraint
->failureDescription($other));
}
}