Code Duplication    Length = 7-9 lines in 13 locations

tests/PhpSpreadsheetTests/Calculation/EngineeringTest.php 13 locations

@@ 174-180 (lines=7) @@
171
    /**
172
     * @dataProvider providerIMCONJUGATE
173
     */
174
    public function testIMCONJUGATE()
175
    {
176
        $args = func_get_args();
177
        $expectedResult = array_pop($args);
178
        $result = call_user_func_array([Engineering::class, 'IMCONJUGATE'], $args);
179
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
180
    }
181
182
    public function providerIMCONJUGATE()
183
    {
@@ 190-196 (lines=7) @@
187
    /**
188
     * @dataProvider providerIMCOS
189
     */
190
    public function testIMCOS()
191
    {
192
        $args = func_get_args();
193
        $expectedResult = array_pop($args);
194
        $result = call_user_func_array([Engineering::class, 'IMCOS'], $args);
195
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
196
    }
197
198
    public function providerIMCOS()
199
    {
@@ 207-215 (lines=9) @@
204
     * @dataProvider providerIMDIV
205
     * @group fail19
206
     */
207
    public function testIMDIV()
208
    {
209
        $this->markTestIncomplete('TODO: This test should be fixed');
210
211
        $args = func_get_args();
212
        $expectedResult = array_pop($args);
213
        $result = call_user_func_array([Engineering::class, 'IMDIV'], $args);
214
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
215
    }
216
217
    public function providerIMDIV()
218
    {
@@ 225-231 (lines=7) @@
222
    /**
223
     * @dataProvider providerIMEXP
224
     */
225
    public function testIMEXP()
226
    {
227
        $args = func_get_args();
228
        $expectedResult = array_pop($args);
229
        $result = call_user_func_array([Engineering::class, 'IMEXP'], $args);
230
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
231
    }
232
233
    public function providerIMEXP()
234
    {
@@ 241-247 (lines=7) @@
238
    /**
239
     * @dataProvider providerIMLN
240
     */
241
    public function testIMLN()
242
    {
243
        $args = func_get_args();
244
        $expectedResult = array_pop($args);
245
        $result = call_user_func_array([Engineering::class, 'IMLN'], $args);
246
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
247
    }
248
249
    public function providerIMLN()
250
    {
@@ 257-263 (lines=7) @@
254
    /**
255
     * @dataProvider providerIMLOG2
256
     */
257
    public function testIMLOG2()
258
    {
259
        $args = func_get_args();
260
        $expectedResult = array_pop($args);
261
        $result = call_user_func_array([Engineering::class, 'IMLOG2'], $args);
262
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
263
    }
264
265
    public function providerIMLOG2()
266
    {
@@ 273-279 (lines=7) @@
270
    /**
271
     * @dataProvider providerIMLOG10
272
     */
273
    public function testIMLOG10()
274
    {
275
        $args = func_get_args();
276
        $expectedResult = array_pop($args);
277
        $result = call_user_func_array([Engineering::class, 'IMLOG10'], $args);
278
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
279
    }
280
281
    public function providerIMLOG10()
282
    {
@@ 290-298 (lines=9) @@
287
     * @dataProvider providerIMPOWER
288
     * @group fail19
289
     */
290
    public function testIMPOWER()
291
    {
292
        $this->markTestIncomplete('TODO: This test should be fixed');
293
294
        $args = func_get_args();
295
        $expectedResult = array_pop($args);
296
        $result = call_user_func_array([Engineering::class, 'IMPOWER'], $args);
297
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
298
    }
299
300
    public function providerIMPOWER()
301
    {
@@ 308-314 (lines=7) @@
305
    /**
306
     * @dataProvider providerIMPRODUCT
307
     */
308
    public function testIMPRODUCT()
309
    {
310
        $args = func_get_args();
311
        $expectedResult = array_pop($args);
312
        $result = call_user_func_array([Engineering::class, 'IMPRODUCT'], $args);
313
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
314
    }
315
316
    public function providerIMPRODUCT()
317
    {
@@ 324-330 (lines=7) @@
321
    /**
322
     * @dataProvider providerIMSIN
323
     */
324
    public function testIMSIN()
325
    {
326
        $args = func_get_args();
327
        $expectedResult = array_pop($args);
328
        $result = call_user_func_array([Engineering::class, 'IMSIN'], $args);
329
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
330
    }
331
332
    public function providerIMSIN()
333
    {
@@ 340-346 (lines=7) @@
337
    /**
338
     * @dataProvider providerIMSQRT
339
     */
340
    public function testIMSQRT()
341
    {
342
        $args = func_get_args();
343
        $expectedResult = array_pop($args);
344
        $result = call_user_func_array([Engineering::class, 'IMSQRT'], $args);
345
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
346
    }
347
348
    public function providerIMSQRT()
349
    {
@@ 357-365 (lines=9) @@
354
     * @dataProvider providerIMSUB
355
     * @group fail19
356
     */
357
    public function testIMSUB()
358
    {
359
        $this->markTestIncomplete('TODO: This test should be fixed');
360
361
        $args = func_get_args();
362
        $expectedResult = array_pop($args);
363
        $result = call_user_func_array([Engineering::class, 'IMSUB'], $args);
364
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
365
    }
366
367
    public function providerIMSUB()
368
    {
@@ 376-382 (lines=7) @@
373
     * @dataProvider providerIMSUM
374
     * @group fail19
375
     */
376
    public function testIMSUM()
377
    {
378
        $args = func_get_args();
379
        $expectedResult = array_pop($args);
380
        $result = call_user_func_array([Engineering::class, 'IMSUM'], $args);
381
        $this->assertTrue($this->complexAssert->assertComplexEquals($expectedResult, $result, 1E-8), $this->complexAssert->getErrorMessage());
382
    }
383
384
    public function providerIMSUM()
385
    {