PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: PHPUnit2_Extensions_MockObject_Stub_MatcherCollection

Source Location: /PHPUnit2-3.0.0alpha11/Extensions/MockObject/Stub/MatcherCollection.php

Class Overview


Stubs a method by returning a user-defined value.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

[line 68]
Stubs a method by returning a user-defined value.


[ Top ]


Method Detail

addMatcher   [line 76]

void addMatcher( PHPUnit2_Extensions_MockObject_Matcher_Invocation $matcher)

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

Parameters:

PHPUnit2_Extensions_MockObject_Matcher_Invocation   $matcher   —  Matcher for invocations to mock objects.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.