Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 120-130 (lines=11) @@
117
        self::assertTrue($psrCache->set($key, $value, $ttl));
118
    }
119
120
    public function testDeleteProxiesToDoctrineDelete()
121
    {
122
        $key = uniqid('key', true);
123
124
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
125
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
126
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
127
128
        $psrCache = new SimpleCacheAdapter($doctrineCache);
129
        self::assertTrue($psrCache->delete($key));
130
    }
131
132
    public function testClearProxiesToDeleteAll()
133
    {
@@ 224-234 (lines=11) @@
221
        self::assertFalse($psrCache->deleteMultiple($keys));
222
    }
223
224
    public function testHasProxiesToDoctrineContains()
225
    {
226
        $key = uniqid('key', true);
227
228
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
229
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
230
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
231
232
        $psrCache = new SimpleCacheAdapter($doctrineCache);
233
        self::assertTrue($psrCache->has($key));
234
    }
235
}
236