PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount
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
getInvocations()
No description
mixed
bool
__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()
PHPUnit_Framework_MockObject_Invocation[]
getInvocations()
bool
hasBeenInvoked()
mixed
invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
bool
matches(PHPUnit_Framework_MockObject_Invocation $invocation)
at line 27
__construct(int $requiredInvocations)
at line 35
string
toString()
at line 46
verify()
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.