Code Duplication    Length = 7-7 lines in 2 locations

tests/FiltererTest.php 2 locations

@@ 437-443 (lines=7) @@
434
     *
435
     * @return void
436
     */
437
    public function filterWithNonStringError()
438
    {
439
        Filterer::filter(
440
            ['fieldOne' => [['strtoupper'], 'error' => new stdClass()]],
441
            ['fieldOne' => 'valueOne']
442
        );
443
    }
444
445
    /**
446
     * Verify behavior of filter() when 'error' is an empty string.
@@ 455-461 (lines=7) @@
452
     *
453
     * @return void
454
     */
455
    public function filterWithEmptyStringError()
456
    {
457
        Filterer::filter(
458
            ['fieldOne' => [['strtoupper'], 'error' => "\n   \t"]],
459
            ['fieldOne' => 'valueOne']
460
        );
461
    }
462
463
    /**
464
     * @test