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 ($other !== NULL) {
$message = '';
if ($other instanceof Exception && $other
->getMessage()) {
$message = '. Message was: "' . $other
->getMessage() . '"';
}
return sprintf('exception of type "%s" matches expected exception "%s"%s', get_class($other), $this->className, $message);
}
return sprintf('exception of type "%s" is thrown', $this->className);
}