Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 148-158 (lines=11) @@
145
        $psrCache->set($key, $value, $ttl);
146
    }
147
148
    public function testDeleteProxiesToDoctrineDelete()
149
    {
150
        $key = uniqid('key', true);
151
152
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
153
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
154
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
155
156
        $psrCache = new SimpleCacheAdapter($doctrineCache);
157
        self::assertTrue($psrCache->delete($key));
158
    }
159
160
    public function testClearProxiesToDeleteAll()
161
    {
@@ 303-313 (lines=11) @@
300
        self::assertFalse($psrCache->deleteMultiple($keys));
301
    }
302
303
    public function testHasProxiesToDoctrineContains()
304
    {
305
        $key = uniqid('key', true);
306
307
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
308
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
309
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
310
311
        $psrCache = new SimpleCacheAdapter($doctrineCache);
312
        self::assertTrue($psrCache->has($key));
313
    }
314
}
315