Documentation

PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
in package

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

Tags
since

Class available since Release 2.2.0

Table of Contents

$invocations  : array<string|int, PHPUnit_Framework_MockObject_Invocation>
$requiredInvocations  : int
__construct()  : mixed
getInvocationCount()  : int
getInvocations()  : array<string|int, PHPUnit_Framework_MockObject_Invocation>
hasBeenInvoked()  : bool
invoked()  : mixed
Registers the invocation $invocation in the object as being invoked.
matches()  : bool
Checks if the invocation $invocation matches the current rules. If it does the matcher will get the invoked() method called which should check if an expectation is met.
toString()  : string
verify()  : mixed
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

Properties

Methods

__construct()

public __construct(int $requiredInvocations) : mixed
Parameters
$requiredInvocations : int
Return values
mixed

getInvocationCount()

public getInvocationCount() : int
Return values
int

hasBeenInvoked()

public hasBeenInvoked() : bool
Return values
bool

Search results