You are here

public function PHPUnit_Framework_Constraint_TraversableContainsOnly::toString in Zircon Profile 8

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

Returns a string representation of the constraint.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

File

vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContainsOnly.php, line 89

Class

PHPUnit_Framework_Constraint_TraversableContainsOnly
Constraint that asserts that the Traversable it is applied to contains only values of a given type.

Code

public function toString() {
  return 'contains only values of type "' . $this->type . '"';
}