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) {
if (is_object($this->value) && is_object($other)) {
return 'two variables reference the same object';
}
if (is_string($this->value) && is_string($other)) {
return 'two strings are identical';
}
return parent::failureDescription($other);
}