You are here

public function PHPUnit_Framework_MockObject_Stub_MatcherCollection::addMatcher in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php \PHPUnit_Framework_MockObject_Stub_MatcherCollection::addMatcher()

Adds a new matcher to the collection which can be used as an expectation or a stub.

Parameters

PHPUnit_Framework_MockObject_Matcher_Invocation $matcher: Matcher for invocations to mock objects.

1 method overrides PHPUnit_Framework_MockObject_Stub_MatcherCollection::addMatcher()
PHPUnit_Framework_MockObject_InvocationMocker::addMatcher in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/InvocationMocker.php

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php, line 25

Class

PHPUnit_Framework_MockObject_Stub_MatcherCollection
Stubs a method by returning a user-defined value.

Code

public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);