PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce
class PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce extends PHPUnit_Framework_MockObject_Matcher_InvokedRecorder (View source)
Invocation matcher which checks if a method has been invoked at least one time.
If the number of invocations is 0 it will throw an exception in verify.
Properties
protected PHPUnit_Framework_MockObject_Invocation[] | $invocations | from PHPUnit_Framework_MockObject_Matcher_InvokedRecorder |
Methods
getInvocations()
No description
mixed
bool
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 24
string
toString()
at line 35
verify()
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.