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

Class: PHPUnit2_Extensions_MockObject_Matcher_InvokedCount

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

Class Overview

PHPUnit2_Extensions_MockObject_Matcher_InvokedRecorder
   |
   --PHPUnit2_Extensions_MockObject_Matcher_InvokedCount

Invocation matcher which checks if a method has been invoked a certain amount of times.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 73]
Invocation matcher which checks if a method has been invoked a certain amount of times.

If the number of invocations exceeds the value it will immediately throw an exception, If the number is less it will later be checked in verify() and also throw an exception.



[ Top ]


Method Detail

__construct (Constructor)   [line 77]

PHPUnit2_Extensions_MockObject_Matcher_InvokedCount __construct( $expectedCount)

  • Access: public

Parameters:

   $expectedCount   — 

[ Top ]

invoked   [line 87]

void invoked( PHPUnit2_Extensions_MockObject_Invocation $invocation)

  • Access: public

Overrides PHPUnit2_Extensions_MockObject_Matcher_InvokedRecorder::invoked() (parent method not documented)

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   — 

[ Top ]

toString   [line 82]

void toString( )

  • Access: public

[ Top ]

verify   [line 105]

void verify( )

  • 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.