Code Duplication    Length = 8-8 lines in 2 locations

test/unit/Message/RequestTest.php 1 location

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

test/unit/Message/ResponseTest.php 1 location

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