Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 41-51 (lines=11) @@
38
        self::assertTrue($psrCache->set($key, $value, $ttl));
39
    }
40
41
    public function testDeleteProxiesToDoctrineDelete()
42
    {
43
        $key = uniqid('key', true);
44
45
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
46
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
47
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
48
49
        $psrCache = new SimpleCacheAdapter($doctrineCache);
50
        self::assertTrue($psrCache->delete($key));
51
    }
52
53
    public function testClearProxiesToDeleteAll()
54
    {
@@ 126-136 (lines=11) @@
123
        self::assertFalse($psrCache->deleteMultiple($keys));
124
    }
125
126
    public function testHasProxiesToDoctrineContains()
127
    {
128
        $key = uniqid('key', true);
129
130
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
131
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
132
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
133
134
        $psrCache = new SimpleCacheAdapter($doctrineCache);
135
        self::assertTrue($psrCache->has($key));
136
    }
137
}
138