You are here

public function PHPUnit_Framework_Constraint_ClassHasStaticAttribute::toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php \PHPUnit_Framework_Constraint_ClassHasStaticAttribute::toString()

Returns a string representation of the constraint.

@since Method available since Release 3.3.0

Return value

string

Overrides PHPUnit_Framework_Constraint_ClassHasAttribute::toString

File

vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasStaticAttribute.php, line 47

Class

PHPUnit_Framework_Constraint_ClassHasStaticAttribute
Constraint that asserts that the class it is evaluated for has a given static attribute.

Code

public function toString() {
  return sprintf('has static attribute "%s"', $this->attributeName);
}