| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function testConstructor(): void |
||
| 15 | { |
||
| 16 | $request = $this->createMock(RequestInterface::class); |
||
| 17 | $previous = $this->createMock(Throwable::class); |
||
| 18 | $exception = new NetworkException($request, 'foo', 255, $previous); |
||
| 19 | self::assertSame($request, $exception->getRequest()); |
||
| 20 | self::assertSame('foo', $exception->getMessage()); |
||
| 21 | self::assertSame(255, $exception->getCode()); |
||
| 22 | self::assertSame($previous, $exception->getPrevious()); |
||
| 23 | } |
||
| 25 |