class PHPUnit_Framework_MockObject_Matcher_InvokedRecorder implements PHPUnit_Framework_MockObject_Matcher_Invocation (View source)

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

Properties

protected PHPUnit_Framework_MockObject_Invocation[] $invocations

Methods

int
getInvocationCount()

No description

bool
hasBeenInvoked()

No description

mixed
invoked(PHPUnit_Framework_MockObject_Invocation $invocation)

No description

bool
matches(PHPUnit_Framework_MockObject_Invocation $invocation)

No description

Details

int getInvocationCount()

Return Value

int

bool hasBeenInvoked()

Return Value

bool

mixed invoked(PHPUnit_Framework_MockObject_Invocation $invocation)

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation Object containing information on a mocked or stubbed method which was invoked

Return Value

mixed

bool matches(PHPUnit_Framework_MockObject_Invocation $invocation)

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation Object containing information on a mocked or stubbed method which was invoked

Return Value

bool