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