Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 /* | |
3 * This file is part of the PHPUnit_MockObject package. | |
4 * | |
5 * (c) Sebastian Bergmann <sebastian@phpunit.de> | |
6 * | |
7 * For the full copyright and license information, please view the LICENSE | |
8 * file that was distributed with this source code. | |
9 */ | |
10 | |
11 /** | |
12 * An object that stubs the process of a normal method for a mock object. | |
13 * | |
14 * The stub object will replace the code for the stubbed method and return a | |
15 * specific value instead of the original value. | |
16 * | |
17 * @since Interface available since Release 1.0.0 | |
18 */ | |
19 interface PHPUnit_Framework_MockObject_Stub extends PHPUnit_Framework_SelfDescribing | |
20 { | |
21 /** | |
22 * Fakes the processing of the invocation $invocation by returning a | |
23 * specific value. | |
24 * | |
25 * @param PHPUnit_Framework_MockObject_Invocation $invocation | |
26 * The invocation which was mocked and matched by the current method | |
27 * and argument matchers. | |
28 * @return mixed | |
29 */ | |
30 public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation); | |
31 } |