Code Duplication    Length = 7-8 lines in 2 locations

tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php 2 locations

@@ 148-154 (lines=7) @@
145
    /**
146
     * @group DDC-546
147
     */
148
    public function testCountOneToMany()
149
    {
150
        $user = $this->_em->find(CmsUser::class, $this->userId);
151
        $this->assertFalse($user->groups->isInitialized(), "Pre-Condition");
152
153
        $this->assertEquals(2, count($user->articles));
154
    }
155
156
    /**
157
     * @group DDC-2504
@@ 170-177 (lines=8) @@
167
    /**
168
     * @group DDC-546
169
     */
170
    public function testFullSlice()
171
    {
172
        $user = $this->_em->find(CmsUser::class, $this->userId);
173
        $this->assertFalse($user->groups->isInitialized(), "Pre-Condition: Collection is not initialized.");
174
175
        $someGroups = $user->groups->slice(null);
176
        $this->assertEquals(3, count($someGroups));
177
    }
178
179
    /**
180
     * @group DDC-546