Code Duplication    Length = 8-8 lines in 2 locations

tests/Doctrine/Tests/ODM/CouchDB/Functional/RepositoryTest.php 1 location

@@ 61-68 (lines=8) @@
58
59
    public function testFindAll()
60
    {
61
        for ($i = 0; $i < 10; $i++) {
62
            $user = new \Doctrine\Tests\Models\CMS\CmsUser();
63
            $user->username = "beberlei" . $i;
64
            $user->status = "active";
65
            $user->name = "Benjamin" . $i;
66
67
            $this->dm->persist($user);
68
        }
69
        for ($i = 0; $i < 10; $i++) {
70
            $group = new \Doctrine\Tests\Models\CMS\CmsGroup();
71
            $group->name = "Group" . $i;

tests/Doctrine/Tests/ODM/CouchDB/Performance/InsertPerformanceTest.php 1 location

@@ 26-33 (lines=8) @@
23
24
        $s = microtime(true);
25
26
        for($i = 0; $i < $n; $i++) {
27
            $user = new \Doctrine\Tests\Models\CMS\CmsUser();
28
            $user->name = "Benjamin";
29
            $user->username = "beberlei";
30
            $user->status = "active";
31
32
            $dm->persist($user);
33
        }
34
        $dm->flush();
35
36
        $diff = microtime(true) - $s;