Code Duplication    Length = 8-8 lines in 2 locations

tests/Cache/MongoCacheTest.php 2 locations

@@ 45-52 (lines=8) @@
42
     *
43
     * @return void
44
     */
45
    public function setTtlIsLessThanOne()
46
    {
47
        (new MongoCache(self::getMongoCollection()))->set(
48
            new Request('not under test', 'not under test', [], []),
49
            new Response(200, [], []),
50
            -1
51
        );
52
    }
53
54
    /**
55
     * Verify cache is removed when expired.
@@ 64-71 (lines=8) @@
61
     *
62
     * @return void
63
     */
64
    public function setTtlIsGreaterThanMax()
65
    {
66
        (new MongoCache(self::getMongoCollection()))->set(
67
            new Request('not under test', 'not under test', [], []),
68
            new Response(200, [], []),
69
            CacheInterface::MAX_TTL + 1
70
        );
71
    }
72
73
    /**
74
     * Verify cache is removed when expired.