| @@ 47-54 (lines=8) @@ | ||
| 44 | $this->assertNull($response->getRpcId()); |
|
| 45 | } |
|
| 46 | ||
| 47 | public function testGetRpcErrorCode() |
|
| 48 | { |
|
| 49 | $response = new Response(200, [], json_encode([ |
|
| 50 | 'error' => ['code'=>123] |
|
| 51 | ])); |
|
| 52 | ||
| 53 | $this->assertEquals(123, $response->getRpcErrorCode()); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function testGetRpcErrorCodeIsNull() |
|
| 57 | { |
|
| @@ 79-86 (lines=8) @@ | ||
| 76 | $this->assertNull($response->getRpcErrorMessage()); |
|
| 77 | } |
|
| 78 | ||
| 79 | public function testGetRpcErrorData() |
|
| 80 | { |
|
| 81 | $response = new Response(200, [], json_encode([ |
|
| 82 | 'error' => ['data' => []] |
|
| 83 | ])); |
|
| 84 | ||
| 85 | $this->assertEquals([], $response->getRpcErrorData()); |
|
| 86 | } |
|
| 87 | ||
| 88 | public function testGetRpcErrorDataIsNull() |
|
| 89 | { |
|