PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
class PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex implements PHPUnit_Framework_MockObject_Matcher_Invocation (View source)
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.
Properties
protected int | $sequenceIndex | ||
protected int | $currentIndex |
Methods
No description
No description
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.
Details
at line 38
__construct(int $sequenceIndex)
at line 46
string
toString()
at line 56
bool
matches(PHPUnit_Framework_MockObject_Invocation $invocation)
at line 66
mixed
invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
at line 76
verify()
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.