Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Builder/NamespaceMatch.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\Builder; | |
11 | |
12 /** | |
13 * Interface for builders which can register builders with a given identification. | |
14 * | |
15 * This interface relates to Identity. | |
16 */ | |
17 interface NamespaceMatch | |
18 { | |
19 /** | |
20 * Looks up the match builder with identification $id and returns it. | |
21 * | |
22 * @param string $id The identification of the match builder | |
23 * | |
24 * @return Match | |
25 */ | |
26 public function lookupId($id); | |
27 | |
28 /** | |
29 * Registers the match builder $builder with the identification $id. The | |
30 * builder can later be looked up using lookupId() to figure out if it | |
31 * has been invoked. | |
32 * | |
33 * @param string $id The identification of the match builder | |
34 * @param Match $builder The builder which is being registered | |
35 */ | |
36 public function registerId($id, Match $builder); | |
37 } |