protected function PHPUnit_Framework_Constraint_Callback::matches in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php \PHPUnit_Framework_Constraint_Callback::matches()
Evaluates the constraint for parameter $value. 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/ Callback.php, line 43
Class
- PHPUnit_Framework_Constraint_Callback
- Constraint that evaluates against a specified closure.
Code
protected function matches($other) {
return call_user_func($this->callback, $other);
}