Code Duplication    Length = 7-8 lines in 2 locations

tests/Doctrine/Tests/ORM/Functional/QueryTest.php 1 location

@@ 380-386 (lines=7) @@
377
378
    public function testModifiedLimitQuery()
379
    {
380
        for ($i = 0; $i < 5; $i++) {
381
            $user = new CmsUser;
382
            $user->name = 'Guilherme' . $i;
383
            $user->username = 'gblanco' . $i;
384
            $user->status = 'developer';
385
            $this->em->persist($user);
386
        }
387
388
        $this->em->flush();
389
        $this->em->clear();

tests/Doctrine/Performance/Hydration/SimpleInsertPerformanceBench.php 1 location

@@ 45-52 (lines=8) @@
42
            CMS\CmsComment::class,
43
        ]);
44
45
        for ($i = 1; $i <= 10000; ++$i) {
46
            $user           = new CMS\CmsUser;
47
            $user->status   = 'user';
48
            $user->username = 'user' . $i;
49
            $user->name     = 'Mr.Smith-' . $i;
50
51
            $this->users[$i] = $user;
52
        }
53
54
        $this->tableName = $this->entityManager->getClassMetadata(CMS\CmsUser::class)->getTableName();
55
    }