Code Duplication    Length = 9-10 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 123-131 (lines=9) @@
120
        self::assertSame($default, $psrCache->get($anotherKey, $default));
121
    }
122
123
    public function testGetWithFalseValueStoredInCache()
124
    {
125
        $key = uniqid('key', true);
126
127
        $psrCache = new SimpleCacheAdapter(new ArrayCache());
128
        $psrCache->set($key, false);
129
130
        self::assertFalse($psrCache->get($key, uniqid('default', true)));
131
    }
132
133
    public function testSetProxiesToDoctrineSave()
134
    {
@@ 179-188 (lines=10) @@
176
     * @param mixed $ttl
177
     * @dataProvider invalidTTLs
178
     */
179
    public function testSetWithInvalidTTL($ttl)
180
    {
181
        $key = uniqid('key', true);
182
        $value = uniqid('value', true);
183
184
        $psrCache = new SimpleCacheAdapter(new ArrayCache());
185
186
        $this->expectException(InvalidArgumentException::class);
187
        $psrCache->set($key, $value, $ttl);
188
    }
189
190
    public function testDeleteProxiesToDoctrineDelete()
191
    {