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

Class: PHPUnit2_Extensions_MockObject_Builder_InvocationMocker

Source Location: /PHPUnit2-3.0.0alpha11/Extensions/MockObject/Builder/InvocationMocker.php

Class Overview


Builder for mocked or stubbed invocations.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 75]
Builder for mocked or stubbed invocations.

Provides methods for building expectations without having to resort to instantiating the various matchers manually. These methods also form a more natural way of reading the expectation. This class should be together with the test case PHPUnit2_Extensions_MockObject_TestCase.



[ Top ]


Method Detail

__construct (Constructor)   [line 81]

PHPUnit2_Extensions_MockObject_Builder_InvocationMocker __construct( PHPUnit2_Extensions_MockObject_Stub_MatcherCollection $collection, PHPUnit2_Extensions_MockObject_Matcher_Invocation $invocationMatcher)

  • Access: public

Parameters:


[ Top ]

after   [line 108]

void after( $id)

  • Access: public

Parameters:

   $id   — 

[ Top ]

getMatcher   [line 89]

void getMatcher( )

  • Access: public

[ Top ]

id   [line 94]

void id( $id)

  • Access: public

Parameters:

   $id   — 

[ Top ]

method   [line 147]

void method( $constraint)

  • Access: public

Parameters:

   $constraint   — 

[ Top ]

will   [line 101]

void will( PHPUnit2_Extensions_MockObject_Stub $stub)

  • Access: public

Parameters:


[ Top ]

with   [line 115]

void with( )

  • Access: public

[ Top ]

withAnyParameters   [line 132]

void withAnyParameters( )

  • Access: public

[ Top ]


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