interface PHPUnit_Framework_MockObject_Stub_MatcherCollection (View source)

Stubs a method by returning a user-defined value.

Methods

addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)

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

Details

addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)

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