Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 88-98 (lines=11) @@
85
        self::assertTrue($psrCache->set($key, $value, $ttl));
86
    }
87
88
    public function testDeleteProxiesToDoctrineDelete()
89
    {
90
        $key = uniqid('key', true);
91
92
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
93
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
94
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
95
96
        $psrCache = new SimpleCacheAdapter($doctrineCache);
97
        self::assertTrue($psrCache->delete($key));
98
    }
99
100
    public function testClearProxiesToDeleteAll()
101
    {
@@ 192-202 (lines=11) @@
189
        self::assertFalse($psrCache->deleteMultiple($keys));
190
    }
191
192
    public function testHasProxiesToDoctrineContains()
193
    {
194
        $key = uniqid('key', true);
195
196
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
197
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
198
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
199
200
        $psrCache = new SimpleCacheAdapter($doctrineCache);
201
        self::assertTrue($psrCache->has($key));
202
    }
203
}
204