Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 158-168 (lines=11) @@
155
        $psrCache->set($key, $value, $ttl);
156
    }
157
158
    public function testDeleteProxiesToDoctrineDelete()
159
    {
160
        $key = uniqid('key', true);
161
162
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
163
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
164
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
165
166
        $psrCache = new SimpleCacheAdapter($doctrineCache);
167
        self::assertTrue($psrCache->delete($key));
168
    }
169
170
    public function testClearProxiesToDeleteAll()
171
    {
@@ 313-323 (lines=11) @@
310
        self::assertFalse($psrCache->deleteMultiple($keys));
311
    }
312
313
    public function testHasProxiesToDoctrineContains()
314
    {
315
        $key = uniqid('key', true);
316
317
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
318
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
319
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
320
321
        $psrCache = new SimpleCacheAdapter($doctrineCache);
322
        self::assertTrue($psrCache->has($key));
323
    }
324
}
325