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
    {
@@ 391-401 (lines=11) @@
388
        self::assertFalse($psrCache->deleteMultiple($keys));
389
    }
390
391
    public function testHasProxiesToDoctrineContains()
392
    {
393
        $key = uniqid('key', true);
394
395
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
396
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
397
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
398
399
        $psrCache = new SimpleCacheAdapter($doctrineCache);
400
        self::assertTrue($psrCache->has($key));
401
    }
402
}
403