Code Duplication    Length = 17-17 lines in 2 locations

tests/Doctrine/Tests/ORM/Cache/DefaultCacheFactoryTest.php 2 locations

@@ 341-357 (lines=17) @@
338
        $this->assertSame('testing:bar', $barRegion->getCache()->getNamespace());
339
    }
340
341
    public function testBuildsDefaultCacheRegionFromGenericCacheRegion()
342
    {
343
        /* @var $cache \Doctrine\Common\Cache\Cache */
344
        $cache = $this->createMock(Cache::class);
345
346
        $factory = new DefaultCacheFactory($this->regionsConfig, $cache);
347
348
        $this->assertInstanceOf(
349
            DefaultRegion::class,
350
            $factory->getRegion(
351
                [
352
                    'region' => 'bar',
353
                    'usage'  => ClassMetadata::CACHE_USAGE_READ_ONLY,
354
                ]
355
            )
356
        );
357
    }
358
359
    public function testBuildsMultiGetCacheRegionFromGenericCacheRegion()
360
    {
@@ 359-375 (lines=17) @@
356
        );
357
    }
358
359
    public function testBuildsMultiGetCacheRegionFromGenericCacheRegion()
360
    {
361
        /* @var $cache \Doctrine\Common\Cache\CacheProvider */
362
        $cache = $this->getMockForAbstractClass(CacheProvider::class);
363
364
        $factory = new DefaultCacheFactory($this->regionsConfig, $cache);
365
366
        $this->assertInstanceOf(
367
            DefaultMultiGetRegion::class,
368
            $factory->getRegion(
369
                [
370
                    'region' => 'bar',
371
                    'usage'  => ClassMetadata::CACHE_USAGE_READ_ONLY,
372
                ]
373
            )
374
        );
375
    }
376
377
}
378