Code Duplication    Length = 7-7 lines in 2 locations

test/unit/SimpleCacheAdapterTest.php 2 locations

@@ 278-284 (lines=7) @@
275
        self::assertSame($values, $psrCache->getMultiple($generator()));
276
    }
277
278
    public function testGetMultipleThrowsExceptionWhenNotArrayOrTraversable()
279
    {
280
        $this->expectException(InvalidArgumentException::class);
281
282
        $psrCache = new SimpleCacheAdapter(new ArrayCache());
283
        $psrCache->getMultiple(uniqid('string', true));
284
    }
285
286
    public function testSetMultipleProxiesToSaveMultiple()
287
    {
@@ 352-358 (lines=7) @@
349
        $psrCache->setMultiple($values, $ttl);
350
    }
351
352
    public function testSetMultipleThrowsExceptionWhenNotArrayOrTraversable()
353
    {
354
        $this->expectException(InvalidArgumentException::class);
355
356
        $psrCache = new SimpleCacheAdapter(new ArrayCache());
357
        $psrCache->setMultiple(uniqid('string', true));
358
    }
359
360
    public function testSetMultipleAcceptsGenerator()
361
    {