Code Duplication    Length = 7-7 lines in 3 locations

tests/Doctrine/Tests/ORM/ConfigurationTest.php 3 locations

@@ 110-116 (lines=7) @@
107
        $this->configuration->getEntityNamespace('NonExistingNamespace');
108
    }
109
110
    public function testSetGetQueryCacheImpl()
111
    {
112
        self::assertSame(null, $this->configuration->getQueryCacheImpl()); // defaults
113
        $queryCacheImpl = $this->createMock(Cache::class);
114
        $this->configuration->setQueryCacheImpl($queryCacheImpl);
115
        self::assertSame($queryCacheImpl, $this->configuration->getQueryCacheImpl());
116
    }
117
118
    public function testSetGetHydrationCacheImpl()
119
    {
@@ 118-124 (lines=7) @@
115
        self::assertSame($queryCacheImpl, $this->configuration->getQueryCacheImpl());
116
    }
117
118
    public function testSetGetHydrationCacheImpl()
119
    {
120
        self::assertSame(null, $this->configuration->getHydrationCacheImpl()); // defaults
121
        $queryCacheImpl = $this->createMock(Cache::class);
122
        $this->configuration->setHydrationCacheImpl($queryCacheImpl);
123
        self::assertSame($queryCacheImpl, $this->configuration->getHydrationCacheImpl());
124
    }
125
126
    public function testSetGetMetadataCacheImpl()
127
    {
@@ 126-132 (lines=7) @@
123
        self::assertSame($queryCacheImpl, $this->configuration->getHydrationCacheImpl());
124
    }
125
126
    public function testSetGetMetadataCacheImpl()
127
    {
128
        self::assertSame(null, $this->configuration->getMetadataCacheImpl()); // defaults
129
        $queryCacheImpl = $this->createMock(Cache::class);
130
        $this->configuration->setMetadataCacheImpl($queryCacheImpl);
131
        self::assertSame($queryCacheImpl, $this->configuration->getMetadataCacheImpl());
132
    }
133
134
    public function testAddGetNamedQuery()
135
    {