Code Duplication    Length = 7-7 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 297-303 (lines=7) @@
294
        self::assertSame($values, $psrCache->getMultiple($generator()));
295
    }
296
297
    public function testGetMultipleThrowsExceptionWhenNotArrayOrTraversable()
298
    {
299
        $this->expectException(InvalidArgumentException::class);
300
301
        $psrCache = new SimpleCacheAdapter(new ArrayCache());
302
        $psrCache->getMultiple(uniqid('string', true));
303
    }
304
305
    public function testSetMultipleProxiesToSaveMultiple()
306
    {
@@ 371-377 (lines=7) @@
368
        $psrCache->setMultiple($values, $ttl);
369
    }
370
371
    public function testSetMultipleThrowsExceptionWhenNotArrayOrTraversable()
372
    {
373
        $this->expectException(InvalidArgumentException::class);
374
375
        $psrCache = new SimpleCacheAdapter(new ArrayCache());
376
        $psrCache->setMultiple(uniqid('string', true));
377
    }
378
379
    public function testSetMultipleAcceptsGenerator()
380
    {