Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Stub/MatcherCollection.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\Stub; | |
11 | |
12 use PHPUnit\Framework\MockObject\Matcher\Invocation; | |
13 | |
14 /** | |
15 * Stubs a method by returning a user-defined value. | |
16 */ | |
17 interface MatcherCollection | |
18 { | |
19 /** | |
20 * Adds a new matcher to the collection which can be used as an expectation | |
21 * or a stub. | |
22 * | |
23 * @param Invocation $matcher Matcher for invocations to mock objects | |
24 */ | |
25 public function addMatcher(Invocation $matcher); | |
26 } |