| 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;
|
|
|
11 |
|
|
|
12 |
use PHPUnit\Framework\MockObject\Builder\InvocationMocker as BuilderInvocationMocker;
|
|
|
13 |
use PHPUnit\Framework\MockObject\Rule\InvocationOrder;
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* @method BuilderInvocationMocker method($constraint)
|
|
|
17 |
*
|
|
|
18 |
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
|
|
|
19 |
*/
|
|
|
20 |
interface MockObject extends Stub
|
|
|
21 |
{
|
|
|
22 |
public function __phpunit_setOriginalObject($originalObject): void;
|
|
|
23 |
|
|
|
24 |
public function __phpunit_verify(bool $unsetInvocationMocker = true): void;
|
|
|
25 |
|
|
|
26 |
public function expects(InvocationOrder $invocationRule): BuilderInvocationMocker;
|
|
|
27 |
}
|