| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 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 | } |
||
| 44 |