Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Invokable.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 /** | |
13 * Interface for classes which can be invoked. | |
14 * | |
15 * The invocation will be taken from a mock object and passed to an object | |
16 * of this class. | |
17 */ | |
18 interface Invokable extends Verifiable | |
19 { | |
20 /** | |
21 * Invokes the invocation object $invocation so that it can be checked for | |
22 * expectations or matched against stubs. | |
23 * | |
24 * @param Invocation $invocation The invocation object passed from mock object | |
25 * | |
26 * @return object | |
27 */ | |
28 public function invoke(Invocation $invocation); | |
29 | |
30 /** | |
31 * Checks if the invocation matches. | |
32 * | |
33 * @param Invocation $invocation The invocation object passed from mock object | |
34 * | |
35 * @return bool | |
36 */ | |
37 public function matches(Invocation $invocation); | |
38 } |