You are here

interface PHPUnit_Framework_MockObject_Stub_MatcherCollection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/MatcherCollection.php \PHPUnit_Framework_MockObject_Stub_MatcherCollection

Stubs a method by returning a user-defined value.

@since Interface available since Release 1.0.0

Hierarchy

Expanded class hierarchy of PHPUnit_Framework_MockObject_Stub_MatcherCollection

All classes that implement PHPUnit_Framework_MockObject_Stub_MatcherCollection

File

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

View source
interface PHPUnit_Framework_MockObject_Stub_MatcherCollection {

  /**
   * Adds a new matcher to the collection which can be used as an expectation
   * or a stub.
   *
   * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher
   *                                                                 Matcher for invocations to mock objects.
   */
  public function addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);

}

Members

Namesort descending Modifiers Type Description Overrides
PHPUnit_Framework_MockObject_Stub_MatcherCollection::addMatcher public function Adds a new matcher to the collection which can be used as an expectation or a stub. 1