Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 134-144 (lines=11) @@
131
        $psrCache->set($key, $value, $ttl);
132
    }
133
134
    public function testDeleteProxiesToDoctrineDelete()
135
    {
136
        $key = uniqid('key', true);
137
138
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
139
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
140
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
141
142
        $psrCache = new SimpleCacheAdapter($doctrineCache);
143
        self::assertTrue($psrCache->delete($key));
144
    }
145
146
    public function testClearProxiesToDeleteAll()
147
    {
@@ 289-299 (lines=11) @@
286
        self::assertFalse($psrCache->deleteMultiple($keys));
287
    }
288
289
    public function testHasProxiesToDoctrineContains()
290
    {
291
        $key = uniqid('key', true);
292
293
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
294
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
295
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
296
297
        $psrCache = new SimpleCacheAdapter($doctrineCache);
298
        self::assertTrue($psrCache->has($key));
299
    }
300
}
301