Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testRunningItems(): void |
||
19 | { |
||
20 | /** @var console\Application $app */ |
||
21 | $app = $this->createMock(console\Application::class); |
||
22 | $group = new BootstrapGroup(); |
||
23 | |||
24 | $child = $this->createMock(BootstrapGroup::class); |
||
25 | |||
26 | $child |
||
27 | ->expects($this->exactly(2)) |
||
28 | ->method('bootstrap') |
||
29 | ->with($app); |
||
30 | |||
31 | $group->items = [ |
||
32 | $child, |
||
33 | $child, |
||
34 | ]; |
||
35 | |||
36 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
37 | $group->bootstrap($app); |
||
38 | } |
||
39 | |||
55 |