| 148 |
lars |
1 |
<?php declare(strict_types=1);
|
|
|
2 |
/*
|
|
|
3 |
* This file is part of PHPUnit.
|
|
|
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 |
* @internal This class is not covered by the backward compatibility promise for PHPUnit
|
|
|
14 |
*/
|
|
|
15 |
interface MethodNameMatch extends ParametersMatch
|
|
|
16 |
{
|
|
|
17 |
/**
|
|
|
18 |
* Adds a new method name match and returns the parameter match object for
|
|
|
19 |
* further matching possibilities.
|
|
|
20 |
*
|
|
|
21 |
* @param \PHPUnit\Framework\Constraint\Constraint $constraint Constraint for matching method, if a string is passed it will use the PHPUnit_Framework_Constraint_IsEqual
|
|
|
22 |
*
|
|
|
23 |
* @return ParametersMatch
|
|
|
24 |
*/
|
|
|
25 |
public function method($constraint);
|
|
|
26 |
}
|