public function testDecode()
 {
     $reply = '{"jsonrpc": "2.0", "result": 1, "id": 1}';
     $client = new Client();
     $actualOutput = $client->decode($reply);
     $expectedOutput = @json_decode($reply, true);
     $this->assertSame($expectedOutput, $actualOutput);
 }
 public function send()
 {
     $content = $this->client->encode();
     $reply = $this->execute(self::$METHOD, $this->headers, $content);
     return $this->client->decode($reply);
 }