| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testExceptionClass(): void |
||
| 12 | { |
||
| 13 | $previousException = new \RuntimeException(); |
||
| 14 | $exception = new InvalidArgumentException('message', 1, $previousException); |
||
| 15 | |||
| 16 | $this->assertSame('message', $exception->getMessage()); |
||
| 17 | $this->assertSame(1, $exception->getCode()); |
||
| 18 | $this->assertSame($previousException, $exception->getPrevious()); |
||
| 19 | $this->assertInstanceOf(DsnException::class, $exception); |
||
| 20 | } |
||
| 22 |