PHPUnit_Framework_MockObject_Stub_MatcherCollection
in
Stubs a method by returning a user-defined value.
Tags
Table of Contents
- addMatcher() : mixed
- Adds a new matcher to the collection which can be used as an expectation or a stub.
Methods
addMatcher()
Adds a new matcher to the collection which can be used as an expectation or a stub.
public
addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) : mixed
Parameters
- $matcher : PHPUnit_Framework_MockObject_Matcher_Invocation
-
Matcher for invocations to mock objects.