PHPUnit_Framework_MockObject_Invokable
extends
PHPUnit_Framework_MockObject_Verifiable
in
Interface for classes which can be invoked.
The invocation will be taken from a mock object and passed to an object of this class.
Tags
Table of Contents
- invoke() : object
- Invokes the invocation object $invocation so that it can be checked for expectations or matched against stubs.
- matches() : bool
- Checks if the invocation matches.
- 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.
Methods
invoke()
Invokes the invocation object $invocation so that it can be checked for expectations or matched against stubs.
public
invoke(PHPUnit_Framework_MockObject_Invocation $invocation) : object
Parameters
- $invocation : PHPUnit_Framework_MockObject_Invocation
-
The invocation object passed from mock object.
Return values
object —matches()
Checks if the invocation matches.
public
matches(PHPUnit_Framework_MockObject_Invocation $invocation) : bool
Parameters
- $invocation : PHPUnit_Framework_MockObject_Invocation
-
The invocation object passed from mock object.
Return values
bool —verify()
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.
public
verify() : mixed