Code Duplication    Length = 7-7 lines in 3 locations

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

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

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1050Test.php 1 location

@@ 24-30 (lines=7) @@
21
22
    public function testPerformance()
23
    {
24
        for ($i = 2; $i < 10000; ++$i) {
25
            $user = new CmsUser();
26
            $user->status = 'developer';
27
            $user->username = 'jwage'.$i;
28
            $user->name = 'Jonathan';
29
            $this->_em->persist($user);
30
        }
31
        $this->_em->flush();
32
        $this->_em->clear();
33

tests/Doctrine/Tests/ORM/Performance/PersisterPerformanceTest.php 1 location

@@ 92-98 (lines=7) @@
89
90
    public function testFindCmsUser()
91
    {
92
        for ($i = 0; $i < 100; $i++) {
93
            $user = new CmsUser();
94
            $user->name = "beberlei";
95
            $user->status = "active";
96
            $user->username = "beberlei".$i;
97
            $this->_em->persist($user);
98
        }
99
100
        $this->_em->flush();
101
        $this->_em->clear();