public function PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::invoked in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/StatelessInvocation.php \PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::invoked()
Registers the invocation $invocation in the object as being invoked. This will only occur after matches() returns true which means the current invocation is the correct one.
The matcher can store information from the invocation which can later be checked in verify(), or it can check the values directly and throw and exception if an expectation is not met.
If the matcher is a stub it will also have a return value.
Parameters
PHPUnit_Framework_MockObject_Invocation $invocation: Object containing information on a mocked or stubbed method which was invoked.
Return value
mixed
Overrides PHPUnit_Framework_MockObject_Matcher_Invocation::invoked
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ StatelessInvocation.php, line 39
Class
- PHPUnit_Framework_MockObject_Matcher_StatelessInvocation
- Invocation matcher which does not care about previous state from earlier invocations.
Code
public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) {
}