| 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\Rule;
|
|
|
11 |
|
|
|
12 |
use PHPUnit\Framework\ExpectationFailedException;
|
|
|
13 |
use PHPUnit\Framework\MockObject\Invocation as BaseInvocation;
|
|
|
14 |
use PHPUnit\Framework\MockObject\Verifiable;
|
|
|
15 |
use PHPUnit\Framework\SelfDescribing;
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
|
|
19 |
*/
|
|
|
20 |
interface ParametersRule extends SelfDescribing, Verifiable
|
|
|
21 |
{
|
|
|
22 |
/**
|
|
|
23 |
* @throws ExpectationFailedException if the invocation violates the rule
|
|
|
24 |
*/
|
|
|
25 |
public function apply(BaseInvocation $invocation): void;
|
|
|
26 |
|
|
|
27 |
public function verify(): void;
|
|
|
28 |
}
|