Conditions | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testCanSetPreviousException() |
||
13 | { |
||
14 | $previous = new Exception(); |
||
15 | |||
16 | $abstractDriverException = new class($previous) extends AbstractDriverException { |
||
17 | public function __construct(Throwable $previous) |
||
18 | { |
||
19 | parent::__construct('', null, null, $previous); |
||
20 | } |
||
21 | }; |
||
22 | |||
23 | $this->assertSame($previous, $abstractDriverException->getPrevious()); |
||
24 | } |
||
26 |