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
    {
@@ 421-431 (lines=11) @@
418
        self::assertFalse($psrCache->deleteMultiple($keys));
419
    }
420
421
    public function testHasProxiesToDoctrineContains()
422
    {
423
        $key = uniqid('key', true);
424
425
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
426
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
427
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
428
429
        $psrCache = new SimpleCacheAdapter($doctrineCache);
430
        self::assertTrue($psrCache->has($key));
431
    }
432
}
433