| Total Complexity | 1 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class RequestExceptionTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testItReturnsBaseExceptionProvidedToConstruct(): void |
||
| 13 | { |
||
| 14 | $baseException = new BaseRequestException( |
||
| 15 | 'It is an exception', |
||
| 16 | new Request('get', 'http://foo.bar') |
||
| 17 | ); |
||
| 18 | $exception = new RequestException($baseException); |
||
| 19 | $this->assertEquals($exception->getBaseException(), $baseException); |
||
| 20 | } |
||
| 22 |