Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 157-163 (lines=7) @@
154
    /**
155
     * @group DDC-546
156
     */
157
    public function testCountOneToMany()
158
    {
159
        $user = $this->em->find(CmsUser::class, $this->userId);
160
        self::assertFalse($user->groups->isInitialized(), "Pre-Condition");
161
162
        self::assertCount(2, $user->articles);
163
    }
164
165
    /**
166
     * @group DDC-2504
@@ 179-186 (lines=8) @@
176
    /**
177
     * @group DDC-546
178
     */
179
    public function testFullSlice()
180
    {
181
        $user = $this->em->find(CmsUser::class, $this->userId);
182
        self::assertFalse($user->groups->isInitialized(), "Pre-Condition: Collection is not initialized.");
183
184
        $someGroups = $user->groups->slice(null);
185
        self::assertCount(3, $someGroups);
186
    }
187
188
    /**
189
     * @group DDC-546