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
@@ 171-180 (lines=10) @@
168
        $this->_em->$methodName(null);
169
    }
170
171
    static public function dataAffectedByErrorIfClosedException()
172
    {
173
        return [
174
            ['flush'],
175
            ['persist'],
176
            ['remove'],
177
            ['merge'],
178
            ['refresh'],
179
        ];
180
    }
181
182
    /**
183
     * @dataProvider dataAffectedByErrorIfClosedException