Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: namespace PHPUnit\Framework\MockObject\Stub; Chris@14: Chris@14: use PHPUnit\Framework\MockObject\Matcher\Invocation; Chris@14: Chris@14: /** Chris@14: * Stubs a method by returning a user-defined value. Chris@14: */ Chris@14: interface MatcherCollection Chris@14: { Chris@14: /** Chris@14: * Adds a new matcher to the collection which can be used as an expectation Chris@14: * or a stub. Chris@14: * Chris@14: * @param Invocation $matcher Matcher for invocations to mock objects Chris@14: */ Chris@14: public function addMatcher(Invocation $matcher); Chris@14: }