Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Stub.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 /* | |
3 * This file is part of the phpunit-mock-objects 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 namespace PHPUnit\Framework\MockObject; | |
11 | |
12 use PHPUnit\Framework\SelfDescribing; | |
13 | |
14 /** | |
15 * An object that stubs the process of a normal method for a mock object. | |
16 * | |
17 * The stub object will replace the code for the stubbed method and return a | |
18 * specific value instead of the original value. | |
19 */ | |
20 interface Stub extends SelfDescribing | |
21 { | |
22 /** | |
23 * Fakes the processing of the invocation $invocation by returning a | |
24 * specific value. | |
25 * | |
26 * @param Invocation $invocation The invocation which was mocked and matched by the current method and argument matchers | |
27 * | |
28 * @return mixed | |
29 */ | |
30 public function invoke(Invocation $invocation); | |
31 } |