final class InvokedAtMostCount extends InvocationOrder (View source)

internal  This class is not covered by the backward compatibility promise for PHPUnit
 

Methods

int
numberOfInvocations()

No description

bool
hasBeenInvoked()

No description

void
invoked(Invocation $invocation)

No description

bool
matches(Invocation $invocation)

No description

void
verify()

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

void
invokedDo(Invocation $invocation)

No description

__construct(int $allowedInvocations)

No description

string
toString()

Returns a string representation of the object.

Details

int numberOfInvocations()

No description

Return Value

int

bool hasBeenInvoked()

No description

Return Value

bool

final void invoked(Invocation $invocation)

No description

Parameters

Invocation $invocation

Return Value

void

bool matches(Invocation $invocation)

No description

Parameters

Invocation $invocation

Return Value

bool

void verify()

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

Return Value

void

Exceptions

ExpectationFailedException

protected void invokedDo(Invocation $invocation)

No description

Parameters

Invocation $invocation

Return Value

void

__construct(int $allowedInvocations)

No description

Parameters

int $allowedInvocations

string toString()

Returns a string representation of the object.

Return Value

string