protected function PHPUnit_Framework_Constraint_PCREMatch::matches in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/PCREMatch.php \PHPUnit_Framework_Constraint_PCREMatch::matches()
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
Parameters
mixed $other Value or object to evaluate.:
Return value
bool
Overrides PHPUnit_Framework_Constraint::matches
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ PCREMatch.php, line 45
Class
- PHPUnit_Framework_Constraint_PCREMatch
- Constraint that asserts that the string it is evaluated for matches a regular expression.
Code
protected function matches($other) {
return preg_match($this->pattern, $other) > 0;
}