comparison vendor/phpunit/phpunit-mock-objects/src/Builder/Stub.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 use PHPUnit\Framework\MockObject\Stub as BaseStub;
13
14 /**
15 * Builder interface for stubs which are actions replacing an invocation.
16 */
17 interface Stub extends Identity
18 {
19 /**
20 * Stubs the matching method with the stub object $stub. Any invocations of
21 * the matched method will now be handled by the stub instead.
22 *
23 * @param BaseStub $stub
24 *
25 * @return Identity
26 */
27 public function will(BaseStub $stub);
28 }