Code Duplication    Length = 11-11 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 72-82 (lines=11) @@
69
        self::assertTrue($psrCache->set($key, $value, $ttl));
70
    }
71
72
    public function testDeleteProxiesToDoctrineDelete()
73
    {
74
        $key = uniqid('key', true);
75
76
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
77
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
78
        $doctrineCache->expects(self::once())->method('delete')->with($key)->willReturn(true);
79
80
        $psrCache = new SimpleCacheAdapter($doctrineCache);
81
        self::assertTrue($psrCache->delete($key));
82
    }
83
84
    public function testClearProxiesToDeleteAll()
85
    {
@@ 157-167 (lines=11) @@
154
        self::assertFalse($psrCache->deleteMultiple($keys));
155
    }
156
157
    public function testHasProxiesToDoctrineContains()
158
    {
159
        $key = uniqid('key', true);
160
161
        /** @var FullyImplementedCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
162
        $doctrineCache = $this->createMock(FullyImplementedCache::class);
163
        $doctrineCache->expects(self::once())->method('contains')->with($key)->willReturn(true);
164
165
        $psrCache = new SimpleCacheAdapter($doctrineCache);
166
        self::assertTrue($psrCache->has($key));
167
    }
168
}
169