Returns a string representation of the constraint.
Return value
string
Overrides PHPUnit_Framework_SelfDescribing::toString
File
- drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php, line 96
Class
- PHPUnit_Framework_Constraint_ClassHasAttribute
- Constraint that asserts that the class it is evaluated for has a given
attribute.
Code
public function toString() {
return sprintf('has attribute "%s"', $this->attributeName);
}