public function PHPUnit_Framework_MockObject_Matcher_Invocation::invoked in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Invocation.php \PHPUnit_Framework_MockObject_Matcher_Invocation::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
4 methods override PHPUnit_Framework_MockObject_Matcher_Invocation::invoked()
- PHPUnit_Framework_MockObject_Matcher::invoked in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher.php - PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex::invoked in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ InvokedAtIndex.php - PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::invoked in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ InvokedRecorder.php - PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::invoked in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ StatelessInvocation.php - 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.
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ Invocation.php, line 35
Class
- PHPUnit_Framework_MockObject_Matcher_Invocation
- Interface for classes which matches an invocation based on its method name, argument, order or call count.
Code
public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation);