Code Duplication    Length = 9-9 lines in 2 locations

Tests/Unit/HttpCacheTest.php 2 locations

@@ 62-70 (lines=9) @@
59
        return $mock;
60
    }
61
62
    public function testGenerateUserHashNotAllowed()
63
    {
64
        $request = new Request();
65
        $request->headers->set('accept', HttpCache::USER_HASH_ACCEPT_HEADER);
66
        $httpCache = $this->getHttpCachePartialMock();
67
        $response = $httpCache->handle($request);
68
        $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
69
        $this->assertSame(400, $response->getStatusCode());
70
    }
71
72
    public function testPassingUserHashNotAllowed()
73
    {
@@ 72-80 (lines=9) @@
69
        $this->assertSame(400, $response->getStatusCode());
70
    }
71
72
    public function testPassingUserHashNotAllowed()
73
    {
74
        $request = new Request();
75
        $request->headers->set(HttpCache::USER_HASH_HEADER, 'foo');
76
        $httpCache = $this->getHttpCachePartialMock();
77
        $response = $httpCache->handle($request);
78
        $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
79
        $this->assertSame(400, $response->getStatusCode());
80
    }
81
82
    public function testUserHashAnonymous()
83
    {