Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testSnapshot(): void |
||
20 | { |
||
21 | $app = $this->makeApp(); |
||
22 | |||
23 | try { |
||
24 | throw new \Error('test error'); |
||
25 | } catch (\Error $e) { |
||
26 | /** @var SnapshotInterface $s */ |
||
27 | $s = $app->get(SnapshotterInterface::class)->register($e); |
||
28 | } |
||
29 | |||
30 | $this->assertInstanceOf(\Error::class, $s->getException()); |
||
31 | } |
||
33 |