class PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder (View source)

Invocation matcher which checks if a method has been invoked at least N times.

Properties

protected PHPUnit_Framework_MockObject_Invocation[] $invocations from PHPUnit_Framework_MockObject_Matcher_InvokedRecorder

Methods

__construct(int $requiredInvocations)

No description

string
toString()

No description

verify()

Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

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

__construct(int $requiredInvocations)

Parameters

int $requiredInvocations

string toString()

Return Value

string

verify()

Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

Exceptions

ExpectationFailedException