public function PHPUnit_Framework_Constraint_IsIdentical::toString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php \PHPUnit_Framework_Constraint_IsIdentical::toString()
Returns a string representation of the constraint.
Return value
string
Overrides PHPUnit_Framework_SelfDescribing::toString
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ IsIdentical.php, line 119
Class
- PHPUnit_Framework_Constraint_IsIdentical
- Constraint that asserts that one value is identical to another.
Code
public function toString() {
if (is_object($this->value)) {
return 'is identical to an object of class "' . get_class($this->value) . '"';
}
else {
return 'is identical to ' . $this->exporter
->export($this->value);
}
}