Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | public function testFinish(): void |
||
31 | { |
||
32 | $this->assertThrowsException(function () { |
||
33 | $collector = new Collector(); |
||
34 | $collector->finish(); |
||
35 | }, Exception::class, "Code coverage collector has not been started.", Exception::COLLECTOR_NOT_STARTED); |
||
36 | |||
37 | $collector = new Collector(); |
||
38 | $collector->registerEngine(new DummyEngine()); |
||
39 | $collector->start(); |
||
40 | $result = $collector->finish(); |
||
41 | $this->assertType("array", $result); |
||
42 | } |
||
44 |