Code Duplication    Length = 7-7 lines in 2 locations

Tests/EventListener/AttributeCreatorListenerTest.php 2 locations

@@ 55-61 (lines=7) @@
52
        $subscriber = new Subscriber();
53
54
        // FIRST PASS
55
        for ($i = 0; $i < 5; $i++) {
56
            $definition = new Definition();
57
            $definition->setName($i);
58
            $definition->setType('text');
59
60
            $schema->addDefinition($definition);
61
        }
62
63
        $em->persist($schema);
64
        $em->flush($schema);
@@ 80-86 (lines=7) @@
77
        $this->assertCount(16, $profiler->queries);
78
79
        // SECOND PASS
80
        for ($i = 5; $i < 10; $i++) {
81
            $definition = new Definition();
82
            $definition->setName($i);
83
            $definition->setType('text');
84
85
            $schema->addDefinition($definition);
86
        }
87
88
        $em->persist($schema);
89
        $em->flush($schema);