Code Duplication    Length = 7-7 lines in 2 locations

tests/FiltererTest.php 2 locations

@@ 473-479 (lines=7) @@
470
     *
471
     * @return void
472
     */
473
    public function filterWithNonStringError()
474
    {
475
        Filterer::filter(
476
            ['fieldOne' => [['strtoupper'], 'error' => new stdClass()]],
477
            ['fieldOne' => 'valueOne']
478
        );
479
    }
480
481
    /**
482
     * Verify behavior of filter() when 'error' is an empty string.
@@ 492-498 (lines=7) @@
489
     *
490
     * @return void
491
     */
492
    public function filterWithEmptyStringError()
493
    {
494
        Filterer::filter(
495
            ['fieldOne' => [['strtoupper'], 'error' => "\n   \t"]],
496
            ['fieldOne' => 'valueOne']
497
        );
498
    }
499
500
    /**
501
     * @test