Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 180-190 (lines=11) @@
177
        $psrCache->set($key, $value, $ttl);
178
    }
179
180
    public function testDeleteProxiesToDoctrineDelete()
181
    {
182
        $key = uniqid('key', true);
183
184
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
185
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
186
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
187
188
        $psrCache = new SimpleCacheAdapter($doctrineCache);
189
        self::assertTrue($psrCache->delete($key));
190
    }
191
192
    public function testClearProxiesToDeleteAll()
193
    {
@@ 381-391 (lines=11) @@
378
        self::assertFalse($psrCache->deleteMultiple($keys));
379
    }
380
381
    public function testHasProxiesToDoctrineContains()
382
    {
383
        $key = uniqid('key', true);
384
385
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
386
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
387
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
388
389
        $psrCache = new SimpleCacheAdapter($doctrineCache);
390
        self::assertTrue($psrCache->has($key));
391
    }
392
}
393