You are here

public function PHPUnit_Framework_Constraint_ClassHasAttribute::toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php \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 vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php
Returns the description of the failure
1 method overrides PHPUnit_Framework_Constraint_ClassHasAttribute::toString()
PHPUnit_Framework_Constraint_ClassHasStaticAttribute::toString in vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php
Returns a string representation of the constraint.

File

vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php, line 54

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