Code Duplication    Length = 5-5 lines in 3 locations

tests/phpunit/tests/kses.php 3 locations

@@ 28-32 (lines=5) @@
25
         'title' => 'title',
26
        );
27
28
        foreach ( $attributes as $name => $value ) {
29
               $string = "<address $name='$value'>1 WordPress Avenue, The Internet.</address>";
30
               $expect_string = "<address $name='" . str_replace('; ', ';', trim($value, ';')) . "'>1 WordPress Avenue, The Internet.</address>";
31
               $this->assertEquals($expect_string, wp_kses($string, $allowedposttags));
32
        }
33
    }
34
35
    /**
@@ 54-58 (lines=5) @@
51
         'target' => '_blank',
52
        );
53
54
        foreach ( $attributes as $name => $value ) {
55
               $string = "<a $name='$value'>I link this</a>";
56
               $expect_string = "<a $name='" . trim($value, ';') . "'>I link this</a>";
57
               $this->assertEquals($expect_string, wp_kses($string, $allowedposttags));
58
        }
59
    }
60
61
    /**
@@ 75-79 (lines=5) @@
72
         'title' => 'title',
73
        );
74
75
        foreach ( $attributes as $name => $value ) {
76
               $string = "<abbr $name='$value'>WP</abbr>";
77
               $expect_string = "<abbr $name='" . trim($value, ';') . "'>WP</abbr>";
78
               $this->assertEquals($expect_string, wp_kses($string, $allowedposttags));
79
        }
80
    }
81
82
    function test_feed_links()