public function PHPUnit_Framework_Constraint_ArrayHasKey::toString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php \PHPUnit_Framework_Constraint_ArrayHasKey::toString()
Returns a string representation of the constraint.
Return value
string
Overrides PHPUnit_Framework_SelfDescribing::toString
1 call to PHPUnit_Framework_Constraint_ArrayHasKey::toString()
- PHPUnit_Framework_Constraint_ArrayHasKey::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ArrayHasKey.php - Returns the description of the failure
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ArrayHasKey.php, line 62
Class
- PHPUnit_Framework_Constraint_ArrayHasKey
- Constraint that asserts that the array it is evaluated for has a given key.
Code
public function toString() {
return 'has the key ' . $this->exporter
->export($this->key);
}