Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 121-131 (lines=11) @@
118
        self::assertTrue($psrCache->set($key, $value, $ttl));
119
    }
120
121
    public function testDeleteProxiesToDoctrineDelete()
122
    {
123
        $key = uniqid('key', true);
124
125
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
126
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
127
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
128
129
        $psrCache = new SimpleCacheAdapter($doctrineCache);
130
        self::assertTrue($psrCache->delete($key));
131
    }
132
133
    public function testClearProxiesToDeleteAll()
134
    {
@@ 271-281 (lines=11) @@
268
        self::assertFalse($psrCache->deleteMultiple($keys));
269
    }
270
271
    public function testHasProxiesToDoctrineContains()
272
    {
273
        $key = uniqid('key', true);
274
275
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
276
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
277
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
278
279
        $psrCache = new SimpleCacheAdapter($doctrineCache);
280
        self::assertTrue($psrCache->has($key));
281
    }
282
}
283