protected function PHPUnit_Framework_Constraint_Callback::matches

Evaluates the constraint for parameter $value. Returns TRUE if the constraint is met, FALSE otherwise.

Parameters

mixed $value Value or object to evaluate.:

Return value

bool

Overrides PHPUnit_Framework_Constraint::matches

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Callback.php, line 84

Class

PHPUnit_Framework_Constraint_Callback
Constraint that evaluates against a specified closure.

Code

protected function matches($other) {
  return call_user_func($this->callback, $other);
}