Code Duplication    Length = 7-7 lines in 3 locations

spec/Request/RequestRefreshTokenSpec.php 3 locations

@@ 26-32 (lines=7) @@
23
        $this::getRefreshToken($request)->shouldBe('abcd');
24
    }
25
26
    public function it_gets_from_json()
27
    {
28
        $request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd')));
29
        $request->headers->set('content_type', 'application/json');
30
31
        $this::getRefreshToken($request)->shouldBe('abcd');
32
    }
33
34
    public function it_gets_from_json_x()
35
    {
@@ 34-40 (lines=7) @@
31
        $this::getRefreshToken($request)->shouldBe('abcd');
32
    }
33
34
    public function it_gets_from_json_x()
35
    {
36
        $request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd')));
37
        $request->headers->set('content_type', 'application/x-json');
38
39
        $this::getRefreshToken($request)->shouldBe('abcd');
40
    }
41
42
    public function it_gets_from_json_parameter()
43
    {
@@ 42-48 (lines=7) @@
39
        $this::getRefreshToken($request)->shouldBe('abcd');
40
    }
41
42
    public function it_gets_from_json_parameter()
43
    {
44
        $request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd')));
45
        $request->headers->set('content_type', 'application/json;charset=UTF-8');
46
47
        $this::getRefreshToken($request)->shouldBe('abcd');
48
    }
49
}
50