| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 31 | protected function getJson() |
||
| 32 | { |
||
| 33 | $decoded = json_decode((string) $this->getResponse()->getBody()); |
||
| 34 | |||
| 35 | Assert::same(JSON_ERROR_NONE, json_last_error(), sprintf('The response is not a valid json (%s)', json_last_error_msg())); |
||
| 36 | |||
| 37 | return $decoded; |
||
| 38 | } |
||
| 39 | |||
| 47 |