| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function getResponseVariants() |
||
| 13 | { |
||
| 14 | $success = new JsonRpcResponse('single', (object)['success' => true], null); |
||
| 15 | |||
| 16 | $error = new JsonRpcResponse( |
||
| 17 | 'single', |
||
| 18 | null, |
||
| 19 | new JsonRpcError(JsonRpcError::METHOD_NOT_FOUND, 'Invalid method') |
||
| 20 | ); |
||
| 21 | |||
| 22 | return [ |
||
| 23 | 'empty' => [null], |
||
| 24 | 'empty array' => [[]], |
||
| 25 | 'single success' => [clone $success], |
||
| 26 | 'single failure' => [clone $error], |
||
| 27 | 'mixed array' => [[clone $success, clone $error]], |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 44 |