You are here

protected function PHPUnit_Framework_Constraint_IsInstanceOf::failureDescription in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php \PHPUnit_Framework_Constraint_IsInstanceOf::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/IsInstanceOf.php, line 56

Class

PHPUnit_Framework_Constraint_IsInstanceOf
Constraint that asserts that the object it is evaluated for is an instance of a given class.

Code

protected function failureDescription($other) {
  return sprintf('%s is an instance of %s "%s"', $this->exporter
    ->shortenedExport($other), $this
    ->getType(), $this->className);
}