Code Duplication    Length = 9-9 lines in 2 locations

spec/eZ/Publish/Core/MVC/Symfony/Cache/Http/ResponseConfigurator/ConfigurableResponseCacheConfiguratorSpec.php 2 locations

@@ 49-57 (lines=9) @@
46
        $response->setSharedMaxAge(30)->shouldNotHaveBeenCalled();
47
    }
48
49
    function it_does_not_set_shared_maxage_if_it_is_already_set_in_the_response(Response $response, ResponseHeaderBag $headers)
50
    {
51
        $this->beConstructedWith(true, true, 30);
52
        $headers->hasCacheControlDirective('s-maxage')->willReturn(true);
53
54
        $this->setSharedMaxAge($response);
55
56
        $response->setSharedMaxAge($response, 30)->shouldNotHaveBeenCalled();
57
    }
58
59
    function it_sets_shared_maxage(Response $response, ResponseHeaderBag $headers)
60
    {
@@ 59-67 (lines=9) @@
56
        $response->setSharedMaxAge($response, 30)->shouldNotHaveBeenCalled();
57
    }
58
59
    function it_sets_shared_maxage(Response $response, ResponseHeaderBag $headers)
60
    {
61
        $this->beConstructedWith(true, true, 30);
62
        $headers->hasCacheControlDirective('s-maxage')->willReturn(false);
63
64
        $this->setSharedMaxAge($response);
65
66
        $response->setSharedMaxAge(30)->shouldHaveBeenCalled();
67
    }
68
69
    function it_does_not_add_tags_if_viewcache_is_disabled(Response $response, ResponseHeaderBag $headers)
70
    {