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

Class: PHPUnit2_Extensions_MockObject_Matcher_InvokedRecorder

Source Location: /PHPUnit2-3.0.0alpha11/Extensions/MockObject/Matcher/InvokedRecorder.php

Class Overview


Records invocations and provides convenience methods for checking them later on.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Child classes:

PHPUnit2_Extensions_MockObject_Matcher_InvokedCount
Invocation matcher which checks if a method has been invoked a certain amount of times.
PHPUnit2_Extensions_MockObject_Matcher_InvokedAtLeastOnce
Invocation matcher which checks if a method has been invoked at least one time.

Inherited Variables

Inherited Methods


Class Details

[line 73]
Records invocations and provides convenience methods for checking them later on.

This abstract class can be implemented by matchers which needs to check the number of times an invocation has occured.



[ Top ]


Method Detail

getInvocationCount   [line 77]

void getInvocationCount( )

  • Access: public

[ Top ]

getInvocations   [line 82]

void getInvocations( )

  • Access: public

[ Top ]

hasBeenInvoked   [line 87]

void hasBeenInvoked( )

  • Access: public

[ Top ]

invoked   [line 92]

void invoked( PHPUnit2_Extensions_MockObject_Invocation $invocation)

  • Access: public

Overridden in child classes as:

PHPUnit2_Extensions_MockObject_Matcher_InvokedCount::invoked()

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   — 

[ Top ]

matches   [line 97]

void matches( PHPUnit2_Extensions_MockObject_Invocation $invocation)

  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   — 

[ Top ]


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