Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 /* | |
3 * This file is part of the PHPUnit_MockObject 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 | |
11 /** | |
12 * Invocation matcher which allows any parameters to a method. | |
13 * | |
14 * @since Class available since Release 1.0.0 | |
15 */ | |
16 class PHPUnit_Framework_MockObject_Matcher_AnyParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation | |
17 { | |
18 /** | |
19 * @return string | |
20 */ | |
21 public function toString() | |
22 { | |
23 return 'with any parameters'; | |
24 } | |
25 | |
26 /** | |
27 * @param PHPUnit_Framework_MockObject_Invocation $invocation | |
28 * @return bool | |
29 */ | |
30 public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) | |
31 { | |
32 return true; | |
33 } | |
34 } |