Code Duplication    Length = 7-7 lines in 2 locations

tests/FiltererTest.php 2 locations

@@ 428-434 (lines=7) @@
425
     *
426
     * @return void
427
     */
428
    public function filterWithNonStringError()
429
    {
430
        Filterer::filter(
431
            ['fieldOne' => [['strtoupper'], 'error' => new StdClass()]],
432
            ['fieldOne' => 'valueOne']
433
        );
434
    }
435
436
    /**
437
     * Verify behavior of filter() when 'error' is an empty string.
@@ 446-452 (lines=7) @@
443
     *
444
     * @return void
445
     */
446
    public function filterWithEmptyStringError()
447
    {
448
        Filterer::filter(
449
            ['fieldOne' => [['strtoupper'], 'error' => "\n   \t"]],
450
            ['fieldOne' => 'valueOne']
451
        );
452
    }
453
454
    /**
455
     * @test