Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 171-181 (lines=11) @@
168
        $psrCache->set($key, $value, $ttl);
169
    }
170
171
    public function testDeleteProxiesToDoctrineDelete()
172
    {
173
        $key = uniqid('key', true);
174
175
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
176
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
177
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
178
179
        $psrCache = new SimpleCacheAdapter($doctrineCache);
180
        self::assertTrue($psrCache->delete($key));
181
    }
182
183
    public function testClearProxiesToDeleteAll()
184
    {
@@ 412-422 (lines=11) @@
409
        self::assertFalse($psrCache->deleteMultiple($keys));
410
    }
411
412
    public function testHasProxiesToDoctrineContains()
413
    {
414
        $key = uniqid('key', true);
415
416
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
417
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
418
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
419
420
        $psrCache = new SimpleCacheAdapter($doctrineCache);
421
        self::assertTrue($psrCache->has($key));
422
    }
423
}
424