| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 38 | public function getGetDataAndContentFromException() |
||
| 39 | { |
||
| 40 | $data = (object)[ |
||
| 41 | 'message' => 'Reason', |
||
| 42 | 'extra' => 'foo', |
||
| 43 | ]; |
||
| 44 | $content = 'TheContent'; |
||
| 45 | |||
| 46 | $exception = new ApiResponseErrorException($content, $data, Response::HTTP_BAD_REQUEST); |
||
| 47 | |||
| 48 | $this->assertSame($data, $exception->getData()); |
||
| 49 | $this->assertSame($content, $exception->getContent()); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |