You are here

public function PHPUnit_Framework_MockObject_Matcher_MethodName::matches in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php \PHPUnit_Framework_MockObject_Matcher_MethodName::matches()

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation:

Return value

bool

Overrides PHPUnit_Framework_MockObject_Matcher_Invocation::matches

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/MethodName.php, line 62

Class

PHPUnit_Framework_MockObject_Matcher_MethodName
Invocation matcher which looks for a specific method name in the invocations.

Code

public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) {
  return $this->constraint
    ->evaluate($invocation->methodName, '', true);
}