public function PHPUnit_Framework_MockObject_InvocationMocker::addMatcher 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::addMatcher()
Parameters
PHPUnit_Framework_MockObject_Matcher_Invocation $matcher:
Overrides PHPUnit_Framework_MockObject_Stub_MatcherCollection::addMatcher
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ InvocationMocker.php, line 35
Class
- PHPUnit_Framework_MockObject_InvocationMocker
- Mocker for invocations which are sent from PHPUnit_Framework_MockObject_MockObject objects.
Code
public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) {
$this->matchers[] = $matcher;
}