comparison vendor/phpunit/phpunit-mock-objects/src/Matcher/AnyParameters.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\Matcher;
11
12 use PHPUnit\Framework\MockObject\Invocation as BaseInvocation;
13
14 /**
15 * Invocation matcher which allows any parameters to a method.
16 */
17 class AnyParameters extends StatelessInvocation
18 {
19 /**
20 * @return string
21 */
22 public function toString()
23 {
24 return 'with any parameters';
25 }
26
27 /**
28 * @param BaseInvocation $invocation
29 *
30 * @return bool
31 */
32 public function matches(BaseInvocation $invocation)
33 {
34 return true;
35 }
36 }