You are here

public function PHPUnit_Framework_Constraint_PCREMatch::toString in Zircon Profile 8

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

Returns a string representation of the constraint.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

File

vendor/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php, line 55

Class

PHPUnit_Framework_Constraint_PCREMatch
Constraint that asserts that the string it is evaluated for matches a regular expression.

Code

public function toString() {
  return sprintf('matches PCRE pattern "%s"', $this->pattern);
}