Code Duplication    Length = 7-7 lines in 2 locations

tests/Doctrine/Tests/ORM/Tools/SetupTest.php 2 locations

@@ 82-88 (lines=7) @@
79
    /**
80
     * @group 5904
81
     */
82
    public function testCacheNamespaceShouldBeGeneratedWhenCacheIsNotGiven() : void
83
    {
84
        $config = Setup::createConfiguration(false, '/foo');
85
        $cache  = $config->getMetadataCacheImpl();
86
87
        self::assertSame('dc2_1effb2475fcfba4f9e8b8a1dbc8f3caf_', $cache->getNamespace());
88
    }
89
90
    /**
91
     * @group 5904
@@ 93-99 (lines=7) @@
90
    /**
91
     * @group 5904
92
     */
93
    public function testCacheNamespaceShouldBeGeneratedWhenCacheIsGivenButHasNoNamespace() : void
94
    {
95
        $config = Setup::createConfiguration(false, '/foo', new ArrayCache());
96
        $cache  = $config->getMetadataCacheImpl();
97
98
        self::assertSame('dc2_1effb2475fcfba4f9e8b8a1dbc8f3caf_', $cache->getNamespace());
99
    }
100
101
    /**
102
     * @group 5904