Code Duplication    Length = 8-8 lines in 2 locations

test/unit/Message/RequestTest.php 1 location

@@ 79-86 (lines=8) @@
76
        $this->assertNull($request->getRpcParams());
77
    }
78
79
    public function testGetRpcVersion()
80
    {
81
        $request = new Request('foo', 'bar', [], json_encode([
82
            'jsonrpc' => 'foo'
83
        ]));
84
85
        $this->assertEquals('foo', $request->getRpcVersion());
86
    }
87
88
    public function testGetRpcVersionIsNull()
89
    {

test/unit/Message/ResponseTest.php 1 location

@@ 111-118 (lines=8) @@
108
        $this->assertNull($response->getRpcResult());
109
    }
110
111
    public function testGetRpcVersion()
112
    {
113
        $response = new Response(200, [], json_encode([
114
            'jsonrpc' => 'foo'
115
        ]));
116
117
        $this->assertEquals('foo', $response->getRpcVersion());
118
    }
119
120
    public function testGetRpcVersionIsNull()
121
    {