public function 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 drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher.php
PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex::invoked in drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php
PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::invoked in drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php
PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::invoked in drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/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

drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Matcher/Invocation.php, line 75

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);