Code Duplication    Length = 9-9 lines in 2 locations

Tests/Functional/Test/ProxyTestCaseTest.php 2 locations

@@ 36-44 (lines=9) @@
33
        $this->assertEquals('http://localhost:8080', $client->getBaseUrl());
34
    }
35
36
    public function testAssertHit()
37
    {
38
        $response = $this->getResponseMock()
39
            ->shouldReceive('hasHeader')->with('X-Cache')->once()->andReturn(true)
40
            ->shouldReceive('getHeader')->with('X-Cache')->once()->andReturn('HIT')
41
            ->getMock();
42
43
        $this->assertHit($response);
44
    }
45
46
    public function testAssertMiss()
47
    {
@@ 46-54 (lines=9) @@
43
        $this->assertHit($response);
44
    }
45
46
    public function testAssertMiss()
47
    {
48
        $response = $this->getResponseMock()
49
            ->shouldReceive('hasHeader')->with('X-Cache')->once()->andReturn(true)
50
            ->shouldReceive('getHeader')->with('X-Cache')->once()->andReturn('MISS')
51
            ->getMock();
52
53
        $this->assertMiss($response);
54
    }
55
56
    protected function getResponseMock()
57
    {