Code Duplication    Length = 11-11 lines in 2 locations

tests/RedisCacheTest.php 2 locations

@@ 171-181 (lines=11) @@
168
     *
169
     * @return void
170
     */
171
    public function deleteMultiple()
172
    {
173
        $this->predis->set('foo', 'foo');
174
        $this->predis->set('bar', 'bar');
175
        $this->predis->set('baz', 'baz');
176
177
        $this->cache->deleteMultiple(['foo', 'bar']);
178
        $this->assertSame(0, $this->predis->exists('foo'));
179
        $this->assertSame(0, $this->predis->exists('bar'));
180
        $this->assertSame(1, $this->predis->exists('baz'));
181
    }
182
183
    /**
184
     * @test
@@ 189-199 (lines=11) @@
186
     *
187
     * @return void
188
     */
189
    public function clear()
190
    {
191
        $this->predis->set('foo', 'foo');
192
        $this->predis->set('bar', 'bar');
193
        $this->predis->set('baz', 'baz');
194
195
        $this->cache->clear();
196
        $this->assertSame(0, $this->predis->exists('foo'));
197
        $this->assertSame(0, $this->predis->exists('bar'));
198
        $this->assertSame(0, $this->predis->exists('baz'));
199
    }
200
201
    /**
202
     * @test