Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 190-200 (lines=11) @@
187
        $psrCache->set($key, $value, $ttl);
188
    }
189
190
    public function testDeleteProxiesToDoctrineDelete()
191
    {
192
        $key = uniqid('key', true);
193
194
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
195
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
196
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
197
198
        $psrCache = new SimpleCacheAdapter($doctrineCache);
199
        self::assertTrue($psrCache->delete($key));
200
    }
201
202
    public function testClearProxiesToDeleteAll()
203
    {
@@ 433-443 (lines=11) @@
430
        self::assertFalse($psrCache->deleteMultiple($keys));
431
    }
432
433
    public function testHasProxiesToDoctrineContains()
434
    {
435
        $key = uniqid('key', true);
436
437
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
438
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
439
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
440
441
        $psrCache = new SimpleCacheAdapter($doctrineCache);
442
        self::assertTrue($psrCache->has($key));
443
    }
444
}
445