public function PHPUnit_Framework_MockObject_InvocationMocker::matches in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php \PHPUnit_Framework_MockObject_InvocationMocker::matches()
Parameters
PHPUnit_Framework_MockObject_Invocation $invocation:
Return value
bool
Overrides PHPUnit_Framework_MockObject_Invokable::matches
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ InvocationMocker.php, line 136
Class
- PHPUnit_Framework_MockObject_InvocationMocker
- Mocker for invocations which are sent from PHPUnit_Framework_MockObject_MockObject objects.
Code
public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) {
foreach ($this->matchers as $matcher) {
if (!$matcher
->matches($invocation)) {
return false;
}
}
return true;
}