public function PHPUnit_Framework_Constraint_ClassHasAttribute::toString

Returns a string representation of the constraint.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

1 call to PHPUnit_Framework_Constraint_ClassHasAttribute::toString()
PHPUnit_Framework_Constraint_ClassHasAttribute::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php
Returns the description of the failure
1 method overrides PHPUnit_Framework_Constraint_ClassHasAttribute::toString()
PHPUnit_Framework_Constraint_ClassHasStaticAttribute::toString in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasStaticAttribute.php
Returns a string representation of the constraint.

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);
}