Mercurial > hg > isophonics-drupal-site
annotate vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Namespace.php @ 7:848c88cfe644
More layout
author | Chris Cannam |
---|---|
date | Fri, 05 Jan 2018 13:59:44 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 /* |
Chris@0 | 3 * This file is part of the PHPUnit_MockObject package. |
Chris@0 | 4 * |
Chris@0 | 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> |
Chris@0 | 6 * |
Chris@0 | 7 * For the full copyright and license information, please view the LICENSE |
Chris@0 | 8 * file that was distributed with this source code. |
Chris@0 | 9 */ |
Chris@0 | 10 |
Chris@0 | 11 /** |
Chris@0 | 12 * Interface for builders which can register builders with a given identification. |
Chris@0 | 13 * |
Chris@0 | 14 * This interface relates to PHPUnit_Framework_MockObject_Builder_Identity. |
Chris@0 | 15 * |
Chris@0 | 16 * @since Interface available since Release 1.0.0 |
Chris@0 | 17 */ |
Chris@0 | 18 interface PHPUnit_Framework_MockObject_Builder_Namespace |
Chris@0 | 19 { |
Chris@0 | 20 /** |
Chris@0 | 21 * Looks up the match builder with identification $id and returns it. |
Chris@0 | 22 * |
Chris@0 | 23 * @param string $id The identifiction of the match builder. |
Chris@0 | 24 * @return PHPUnit_Framework_MockObject_Builder_Match |
Chris@0 | 25 */ |
Chris@0 | 26 public function lookupId($id); |
Chris@0 | 27 |
Chris@0 | 28 /** |
Chris@0 | 29 * Registers the match builder $builder with the identification $id. The |
Chris@0 | 30 * builder can later be looked up using lookupId() to figure out if it |
Chris@0 | 31 * has been invoked. |
Chris@0 | 32 * |
Chris@0 | 33 * @param string $id |
Chris@0 | 34 * The identification of the match builder. |
Chris@0 | 35 * @param PHPUnit_Framework_MockObject_Builder_Match $builder |
Chris@0 | 36 * The builder which is being registered. |
Chris@0 | 37 */ |
Chris@0 | 38 public function registerId($id, PHPUnit_Framework_MockObject_Builder_Match $builder); |
Chris@0 | 39 } |