1 | <?php |
||
17 | class PHPUnitMockingStrategy extends AbstractMockingStrategy |
||
18 | { |
||
19 | private const CLASS_NAME = Generator::class; |
||
20 | private const PACKAGE_NAME = 'phpunit/phpunit-mock-objects'; |
||
21 | |||
22 | /** |
||
23 | * @var Generator |
||
24 | */ |
||
25 | private $generator; |
||
26 | |||
27 | /** |
||
28 | * PHPUnitMockingStrategy constructor. |
||
29 | * |
||
30 | * @throws MissingDependencyException |
||
31 | */ |
||
32 | 6 | public function __construct() |
|
39 | |||
40 | /** |
||
41 | * @param string $fqcn |
||
42 | * @return MockObject |
||
43 | * |
||
44 | * @throws \PHPUnit\Framework\Exception |
||
45 | * @throws \PHPUnit\Framework\MockObject\RuntimeException |
||
46 | * @throws \ReflectionException |
||
47 | */ |
||
48 | 27 | protected function doBuild(string $fqcn): MockObject |
|
58 | |||
59 | /** |
||
60 | * @param MockObject $mock |
||
61 | * @param MethodStub $stub |
||
62 | * |
||
63 | * @throws \PHPUnit\Framework\MockObject\RuntimeException |
||
64 | */ |
||
65 | 20 | protected function doDecorateWithMethod($mock, MethodStub $stub): void |
|
75 | |||
76 | /** |
||
77 | * @param MockObject $mock |
||
78 | * @return MockObject |
||
79 | */ |
||
80 | 22 | protected function doGet($mock): MockObject |
|
84 | } |
||
85 |