Code Duplication    Length = 7-24 lines in 2 locations

tests/phpunit/tests/kses.php 1 location

@@ 425-448 (lines=24) @@
422
        return $this->assertEquals($output, wp_kses($input, $allowedposttags));
423
    }
424
425
    function data_ctrl_removal() 
426
    {
427
        return array(
428
         array(
429
          "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\X1C\x1D\x1E\x1F",
430
          '',
431
         ),
432
         array(
433
          "\x00h\x01e\x02l\x03l\x04o\x05 \x06w\x07o\x08r\x0Bl\x0Cd\x0E.\x0F \x10W\x11O\x12R\x13D\x14P\x15R\x16E\x17S\x18S\x19 \x1AK\x1BS\X1CE\x1DS\x1E.\x1F/",
434
          'hello world. WORDPRESS KSES./',
435
         ),
436
         array(
437
          "\x1F\x1E\x1D\x1C\x1B\x1A\x19\x18\x17\x16\x15\x14\x13\x12\x11\x10\x0F\x0E\x0C\x0B\x08\x07\x06\x05\x04\X03\x02\x01\x00",
438
          '',
439
         ),
440
         array(
441
          "\x1Fh\x1Ee\x1Dl\x1Cl\x1Bo\x1A \x19w\x18o\x17r\x16l\x15d\x14.\x13 \x12W\x11O\x10R\x0FD\x0EP\x0CR\x0BE\x08S\x07S\x06 \x05K\x04S\X03E\x02S\x01.\x00/",
442
          'hello world. WORDPRESS KSES./',
443
         ),
444
         array(
445
          "\t\r\n word \n\r\t",
446
          "\t\r\n word \n\r\t",
447
         ),
448
        );
449
    }
450
451
    /**

tests/phpunit/tests/option/multisite.php 1 location

@@ 201-207 (lines=7) @@
198
            $this->assertEquals($sanitized_option_value, get_site_option('illegal_names'));
199
        }
200
201
        function data_illegal_names() 
202
        {
203
            return array(
204
             array( array( '', 'Woo', '' ), array( 'Woo' ) ),
205
             array( 'foo bar', array( 'foo', 'bar' ) ),
206
             array( array(), '' ),
207
            );
208
        }
209
210
         /**