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

Class: PHPUnit2_Extensions_MockObject_Matcher_InvokedAtIndex

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

Class Overview


Invocation matcher which checks if a method was invoked at a certain index.


Author(s):

Version:

  • Release: @package_version@

Copyright:

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

Methods


Inherited Variables

Inherited Methods


Class Details

[line 77]
Invocation matcher which checks if a method was invoked at a certain index.

If the expected index number does not match the current invocation index it will not match which means it skips all method and parameter matching. Only once the index is reached will the method and parameter start matching and verifying.

If the index is never reached it will throw an exception in index.



[ Top ]


Method Detail

__construct (Constructor)   [line 83]

PHPUnit2_Extensions_MockObject_Matcher_InvokedAtIndex __construct( $sequenceIndex)

  • Access: public

Parameters:

   $sequenceIndex   — 

[ Top ]

invoked   [line 100]

void invoked( PHPUnit2_Extensions_MockObject_Invocation $invocation)

  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   — 

[ Top ]

matches   [line 93]

void matches( PHPUnit2_Extensions_MockObject_Invocation $invocation)

  • Access: public

Parameters:

PHPUnit2_Extensions_MockObject_Invocation   $invocation   — 

[ Top ]

toString   [line 88]

void toString( )

  • Access: public

[ Top ]

verify   [line 104]

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.