Code Duplication    Length = 10-28 lines in 4 locations

tests/phpunit/tests/dependencies/styles.php 1 location

@@ 294-321 (lines=28) @@
291
        $this->assertContains($expected, get_echo('wp_print_styles'));
292
    }
293
294
    function data_styles_with_media() 
295
    {
296
        return array(
297
         array(
298
          "media='all'",
299
          'all'
300
         ),
301
         array(
302
          "media='(orientation: portrait)'",
303
          '(orientation: portrait)'
304
         ),
305
         array(
306
          "media='(max-width: 640px)'",
307
          '(max-width: 640px)'
308
         ),
309
         array(
310
          "media='print and (min-width: 25cm)'",
311
          'print and (min-width: 25cm)'
312
         ),
313
         array(
314
          "media='screen and (color), projection and (color)'",
315
          'screen and (color), projection and (color)'
316
         ),
317
         array(
318
          "media='not screen and (color)'",
319
          'not screen and (color)'
320
         ),
321
        );
322
    }
323
}
324

tests/phpunit/tests/formatting/WPTexturize.php 2 locations

@@ 345-372 (lines=28) @@
342
        return $this->assertEquals($output, wptexturize($input));
343
    }
344
345
    function data_apos_before_digits() 
346
    {
347
        return array(
348
         array(
349
          "word '99 word",
350
          "word ’99 word",
351
         ),
352
         array(
353
          "word'99 word",
354
          "word’99 word",
355
         ),
356
         array(
357
          "word '99word",
358
          "word ’99word",
359
         ),
360
         array(
361
          "word'99word",
362
          "word’99word",
363
         ),
364
         array(
365
          "word '99’s word", // Appears as a separate but logically superfluous pattern in 3.8.
366
          "word ’99’s word",
367
         ),
368
         array(
369
          "according to our source, '33 students scored less than 50' on the test.", // Apostrophes and primes have priority over quotes
370
          "according to our source, ’33 students scored less than 50′ on the test.",
371
         ),
372
        );
373
    }
374
375
    /**
@@ 589-616 (lines=28) @@
586
        return $this->assertEquals($output, wptexturize($input));
587
    }
588
589
    function data_contractions() 
590
    {
591
        return array(
592
         array(
593
          "word word's word",
594
          "word word’s word",
595
         ),
596
         array(
597
          "word'[ word", // Apostrophes are never followed by opening punctuation.
598
          "word'[ word",
599
         ),
600
         array(
601
          "word'( word",
602
          "word'( word",
603
         ),
604
         array(
605
          "word'{ word",
606
          "word'{ word",
607
         ),
608
         array(
609
          "word'< word",
610
          "word'< word",
611
         ),
612
         array(
613
          "word'< word", // Invalid HTML input does trigger the apos pattern.
614
          "word&#8217;< word",
615
         ),
616
        );
617
    }
618
619
    /**

tests/phpunit/tests/rewrite/rewriteTags.php 1 location

@@ 31-40 (lines=10) @@
28
        $wp_rewrite = $this->wp_rewrite;
29
    }
30
31
    public function _invalid_rewrite_tags() 
32
    {
33
        return array(
34
         array( 'foo', 'bar' ),
35
         array( '%', 'bar' ),
36
         array( '%a', 'bar' ),
37
         array( 'a%', 'bar' ),
38
         array( '%%', 'bar' ),
39
         array( '', 'bar' ),
40
        );
41
    }
42
43
    /**