Code Duplication    Length = 10-10 lines in 2 locations

tests/Doctrine/Tests/ORM/EntityManagerTest.php 2 locations

@@ 149-158 (lines=10) @@
146
        $this->assertEquals('SELECT 1', $query->getDql());
147
    }
148
149
    static public function dataMethodsAffectedByNoObjectArguments()
150
    {
151
        return [
152
            ['persist'],
153
            ['remove'],
154
            ['merge'],
155
            ['refresh'],
156
            ['detach']
157
        ];
158
    }
159
160
    /**
161
     * @dataProvider dataMethodsAffectedByNoObjectArguments
@@ 170-179 (lines=10) @@
167
        $this->_em->$methodName(null);
168
    }
169
170
    static public function dataAffectedByErrorIfClosedException()
171
    {
172
        return [
173
            ['flush'],
174
            ['persist'],
175
            ['remove'],
176
            ['merge'],
177
            ['refresh'],
178
        ];
179
    }
180
181
    /**
182
     * @dataProvider dataAffectedByErrorIfClosedException