Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | #[TestSuite("Code coverage collector")] |
||
16 | class CollectorTest extends TestCase |
||
17 | { |
||
18 | public function testStart(): void |
||
19 | { |
||
20 | $this->assertThrowsException(function () { |
||
21 | $collector = new Collector(); |
||
22 | $collector->start(); |
||
23 | }, Exception::class, "No code coverage engine is available.", Exception::NO_ENGINE_AVAILABLE); |
||
24 | |||
25 | $collector = new Collector(); |
||
26 | $collector->registerEngine(new DummyEngine()); |
||
27 | $collector->start(); |
||
28 | } |
||
29 | |||
30 | public function testFinish(): void |
||
42 | } |
||
43 | } |
||
44 |