Code Duplication    Length = 10-10 lines in 3 locations

test/unit/SimpleCacheAdapterTest.php 3 locations

@@ 55-64 (lines=10) @@
52
        self::assertTrue($psrCache->delete($key));
53
    }
54
55
    public function testClearThrowsExceptionWhenInvalidCacheIsUsed()
56
    {
57
        /** @var DoctrineCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
58
        $doctrineCache = $this->createMock(DoctrineCache::class);
59
60
        $psrCache = new SimpleCacheAdapter($doctrineCache);
61
62
        $this->expectException(CacheException::class);
63
        $psrCache->clear();
64
    }
65
66
    public function testClearProxiesToDeleteAll()
67
    {
@@ 76-85 (lines=10) @@
73
        self::assertTrue($psrCache->clear());
74
    }
75
76
    public function testGetMultipleThrowsExceptionWhenInvalidCacheIsUsed()
77
    {
78
        /** @var DoctrineCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
79
        $doctrineCache = $this->createMock(DoctrineCache::class);
80
81
        $psrCache = new SimpleCacheAdapter($doctrineCache);
82
83
        $this->expectException(CacheException::class);
84
        $psrCache->getMultiple([]);
85
    }
86
87
    public function testGetMultipleProxiesToFetchMultiple()
88
    {
@@ 103-112 (lines=10) @@
100
        self::assertSame($values, $psrCache->getMultiple($keys));
101
    }
102
103
    public function testSetMultipleThrowsExceptionWhenInvalidCacheIsUsed()
104
    {
105
        /** @var DoctrineCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */
106
        $doctrineCache = $this->createMock(DoctrineCache::class);
107
108
        $psrCache = new SimpleCacheAdapter($doctrineCache);
109
110
        $this->expectException(CacheException::class);
111
        $psrCache->setMultiple([]);
112
    }
113
114
    public function testSetMultipleProxiesToSaveMultiple()
115
    {