comparison vendor/phpunit/phpunit-mock-objects/src/Builder/Identity.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 * Builder interface for unique identifiers.
14 *
15 * Defines the interface for recording unique identifiers. The identifiers
16 * can be used to define the invocation order of expectations. The expectation
17 * is recorded using id() and then defined in order using
18 * PHPUnit\Framework\MockObject\Builder\Match::after().
19 */
20 interface Identity
21 {
22 /**
23 * Sets the identification of the expectation to $id.
24 *
25 * @note The identifier is unique per mock object.
26 *
27 * @param string $id Unique identification of expectation.
28 */
29 public function id($id);
30 }