Lggr
Public Member Functions | List of all members
PHPUnit\Framework\MockObject\Stub\MatcherCollection Interface Reference
Inheritance diagram for PHPUnit\Framework\MockObject\Stub\MatcherCollection:
Inheritance graph
[legend]

Public Member Functions

 addMatcher (Invocation $matcher)
 

Detailed Description

Stubs a method by returning a user-defined value.

Member Function Documentation

◆ addMatcher()

PHPUnit\Framework\MockObject\Stub\MatcherCollection::addMatcher ( Invocation  $matcher)

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

Parameters
Invocation$matcherMatcher for invocations to mock objects

The documentation for this interface was generated from the following file: