- Timestamp:
- 10/31/2022 01:54:00 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests/formatting
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/escUrl.php
r53574 r54728 3 3 /** 4 4 * @group formatting 5 * 6 * @covers ::esc_url 5 7 */ 6 8 class Tests_Formatting_EscUrl extends WP_UnitTestCase { … … 8 10 /** 9 11 * @ticket 23605 10 *11 * @covers ::esc_url12 12 */ 13 13 public function test_spaces() { … … 22 22 } 23 23 24 /**25 * @covers ::esc_url26 */27 24 public function test_bad_characters() { 28 25 $this->assertSame( 'http://example.com/watchthelinefeedgo', esc_url( 'http://example.com/watchthelinefeed%0Ago' ) ); … … 39 36 } 40 37 41 /**42 * @covers ::esc_url43 */44 38 public function test_relative() { 45 39 $this->assertSame( '/example.php', esc_url( '/example.php' ) ); … … 50 44 51 45 /** 52 * @covers ::esc_url53 46 * @covers ::sanitize_url 54 47 */ … … 73 66 } 74 67 75 /**76 * @covers ::esc_url77 */78 68 public function test_bare() { 79 69 $this->assertSame( 'http://example.com?foo', esc_url( 'example.com?foo' ) ); … … 85 75 86 76 /** 87 * @covers ::esc_url88 77 * @covers ::sanitize_url 89 78 */ … … 102 91 103 92 /** 104 * @covers ::esc_url105 93 * @covers ::wp_allowed_protocols 106 94 */ … … 169 157 /** 170 158 * @ticket 23187 171 *172 * @covers ::esc_url173 159 */ 174 160 public function test_protocol_case() { … … 177 163 } 178 164 179 /**180 * @covers ::esc_url181 */182 165 public function test_display_extras() { 183 166 $this->assertSame( 'http://example.com/'quoted'', esc_url( 'http://example.com/\'quoted\'' ) ); … … 185 168 } 186 169 187 /**188 * @covers ::esc_url189 */190 170 public function test_non_ascii() { 191 171 $this->assertSame( 'http://example.org/баба', esc_url( 'http://example.org/баба' ) ); … … 194 174 } 195 175 196 /**197 * @covers ::esc_url198 */199 176 public function test_feed() { 200 177 $this->assertSame( '', esc_url( 'feed:javascript:alert(1)' ) ); … … 207 184 /** 208 185 * @ticket 16859 209 *210 * @covers ::esc_url211 186 */ 212 187 public function test_square_brackets() { … … 234 209 /** 235 210 * @ticket 21974 236 *237 * @covers ::esc_url238 211 */ 239 212 public function test_protocol_relative_with_colon() { … … 243 216 /** 244 217 * @ticket 31632 245 *246 * @covers ::esc_url247 218 */ 248 219 public function test_mailto_with_newline() { … … 260 231 /** 261 232 * @ticket 31632 262 *263 * @covers ::esc_url264 233 */ 265 234 public function test_mailto_in_http_url_with_newline() { … … 277 246 /** 278 247 * @ticket 23605 279 *280 * @covers ::esc_url281 248 */ 282 249 public function test_mailto_with_spaces() { … … 299 266 /** 300 267 * @ticket 34202 301 *302 * @covers ::esc_url303 268 */ 304 269 public function test_ipv6_hosts() { -
trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php
r54088 r54728 4 4 * @group formatting 5 5 * @ticket 46133 6 * 7 * @covers ::excerpt_remove_blocks 6 8 */ 7 9 class Tests_Formatting_ExcerptRemoveBlocks extends WP_UnitTestCase { … … 91 93 * 92 94 * @ticket 46133 93 *94 * @covers ::excerpt_remove_blocks95 95 */ 96 96 public function test_excerpt_remove_blocks() { -
trunk/tests/phpunit/tests/formatting/getBloginfo.php
r53562 r54728 38 38 /** 39 39 * @ticket 27942 40 * 40 41 * @covers ::sanitize_option 41 42 */ -
trunk/tests/phpunit/tests/formatting/sanitizeKey.php
r52370 r54728 3 3 /** 4 4 * @group formatting 5 * 5 6 * @covers ::sanitize_key 6 7 */ -
trunk/tests/phpunit/tests/formatting/sanitizePost.php
r53562 r54728 4 4 * @group post 5 5 * 6 * @covers ::sanitize_post 6 7 * @covers WP_Post::__construct 7 8 */ -
trunk/tests/phpunit/tests/formatting/wpBasename.php
r53562 r54728 3 3 /** 4 4 * @group formatting 5 5 * 6 6 * @covers ::wp_basename 7 7 */ -
trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php
r54051 r54728 3 3 /** 4 4 * @group formatting 5 * 6 * @covers ::wp_html_split 5 7 */ 6 8 class Tests_Formatting_wpHtmlSplit extends WP_UnitTestCase { … … 10 12 * 11 13 * @dataProvider data_basic_features 12 *13 * @covers ::wp_html_split14 14 */ 15 15 public function test_basic_features( $input, $output ) { -
trunk/tests/phpunit/tests/formatting/wpParseStr.php
r51624 r54728 3 3 /** 4 4 * @group formatting 5 * 5 6 * @covers ::wp_parse_str 6 7 */ -
trunk/tests/phpunit/tests/formatting/wpTexturize.php
r54051 r54728 3 3 /** 4 4 * @group formatting 5 * 6 * @covers ::wptexturize 5 7 */ 6 8 class Tests_Formatting_wpTexturize extends WP_UnitTestCase { 7 9 8 /**9 * @covers ::wptexturize10 */11 10 public function test_dashes() { 12 11 $this->assertSame( 'Hey — boo?', wptexturize( 'Hey -- boo?' ) ); … … 14 13 } 15 14 16 /**17 * @covers ::wptexturize18 */19 15 public function test_disable() { 20 16 $this->assertSame( '<pre>---&</pre>', wptexturize( '<pre>---&</pre>' ) ); … … 42 38 /** 43 39 * @ticket 1418 44 *45 * @covers ::wptexturize46 40 */ 47 41 public function test_bracketed_quotes_1418() { … … 53 47 /** 54 48 * @ticket 3810 55 *56 * @covers ::wptexturize57 49 */ 58 50 public function test_bracketed_quotes_3810() { … … 62 54 /** 63 55 * @ticket 4539 64 *65 * @covers ::wptexturize66 56 */ 67 57 public function test_basic_quotes() { … … 87 77 * @ticket 4539 88 78 * @ticket 15241 89 *90 * @covers ::wptexturize91 79 */ 92 80 public function test_full_sentences_with_unmatched_single_quotes() { … … 99 87 /** 100 88 * @ticket 4539 101 *102 * @covers ::wptexturize103 89 */ 104 90 public function test_quotes() { … … 120 106 /** 121 107 * @ticket 4539 122 *123 * @covers ::wptexturize124 108 */ 125 109 public function test_quotes_before_s() { … … 133 117 /** 134 118 * @ticket 4539 135 *136 * @covers ::wptexturize137 119 */ 138 120 public function test_quotes_before_numbers() { … … 163 145 } 164 146 165 /**166 * @covers ::wptexturize167 */168 147 public function test_quotes_after_numbers() { 169 148 $this->assertSame( 'Class of ’99', wptexturize( "Class of '99" ) ); … … 173 152 * @ticket 4539 174 153 * @ticket 15241 175 *176 * @covers ::wptexturize177 154 */ 178 155 public function test_other_html() { … … 182 159 } 183 160 184 /**185 * @covers ::wptexturize186 */187 161 public function test_x() { 188 162 $this->assertSame( '14×24', wptexturize( '14x24' ) ); 189 163 } 190 164 191 /**192 * @covers ::wptexturize193 */194 165 public function test_minutes_seconds() { 195 166 $this->assertSame( '9′', wptexturize( '9\'' ) ); … … 205 176 /** 206 177 * @ticket 8775 207 *208 * @covers ::wptexturize209 178 */ 210 179 public function test_wptexturize_quotes_around_numbers() { … … 217 186 /** 218 187 * @ticket 8912 219 *220 * @covers ::wptexturize221 188 */ 222 189 public function test_wptexturize_html_comments() { … … 229 196 * @ticket 4539 230 197 * @ticket 15241 231 *232 * @covers ::wptexturize233 198 */ 234 199 public function test_entity_quote_cuddling() { … … 239 204 /** 240 205 * @ticket 22823 241 *242 * @covers ::wptexturize243 206 */ 244 207 public function test_apostrophes_before_primes() { … … 248 211 /** 249 212 * @ticket 23185 250 *251 * @covers ::wptexturize252 213 */ 253 214 public function test_spaces_around_hyphens() { … … 273 234 /** 274 235 * @ticket 31030 275 *276 * @covers ::wptexturize277 236 */ 278 237 public function test_hyphens_at_start_and_end() { … … 292 251 * 293 252 * @ticket 22692 294 *295 * @covers ::wptexturize296 253 */ 297 254 public function test_spaces_around_quotes_never() { … … 311 268 * @ticket 22692 312 269 * @dataProvider data_spaces_around_quotes 313 *314 * @covers ::wptexturize315 270 */ 316 271 public function test_spaces_around_quotes( $input, $output ) { … … 369 324 * @ticket 22692 370 325 * @dataProvider data_apos_before_digits 371 *372 * @covers ::wptexturize373 326 */ 374 327 public function test_apos_before_digits( $input, $output ) { … … 412 365 * @ticket 22692 413 366 * @dataProvider data_opening_single_quote 414 *415 * @covers ::wptexturize416 367 */ 417 368 public function test_opening_single_quote( $input, $output ) { … … 543 494 * @ticket 22692 544 495 * @dataProvider data_double_prime 545 *546 * @covers ::wptexturize547 496 */ 548 497 public function test_double_prime( $input, $output ) { … … 578 527 * @ticket 22692 579 528 * @dataProvider data_single_prime 580 *581 * @covers ::wptexturize582 529 */ 583 530 public function test_single_prime( $input, $output ) { … … 613 560 * @ticket 22692 614 561 * @dataProvider data_contractions 615 *616 * @covers ::wptexturize617 562 */ 618 563 public function test_contractions( $input, $output ) { … … 656 601 * @ticket 22692 657 602 * @dataProvider data_opening_quote 658 *659 * @covers ::wptexturize660 603 */ 661 604 public function test_opening_quote( $input, $output ) { … … 735 678 * @ticket 22692 736 679 * @dataProvider data_closing_quote 737 *738 * @covers ::wptexturize739 680 */ 740 681 public function test_closing_quote( $input, $output ) { … … 826 767 * @ticket 22692 827 768 * @dataProvider data_closing_single_quote 828 *829 * @covers ::wptexturize830 769 */ 831 770 public function test_closing_single_quote( $input, $output ) { … … 918 857 * @ticket 30445 919 858 * @dataProvider data_multiplication 920 *921 * @covers ::wptexturize922 859 */ 923 860 public function test_multiplication( $input, $output ) { … … 970 907 * @ticket 22692 971 908 * @dataProvider data_ampersand 972 *973 * @covers ::wptexturize974 909 */ 975 910 public function test_ampersand( $input, $output ) { … … 1037 972 * @ticket 22692 1038 973 * @dataProvider data_cockney 1039 *1040 * @covers ::wptexturize1041 974 */ 1042 975 public function test_cockney( $input, $output ) { … … 1100 1033 * @ticket 22692 1101 1034 * @dataProvider data_smart_dashes 1102 *1103 * @covers ::wptexturize1104 1035 */ 1105 1036 public function test_smart_dashes( $input, $output ) { … … 1155 1086 * @ticket 22692 1156 1087 * @dataProvider data_misc_static_replacements 1157 *1158 * @covers ::wptexturize1159 1088 */ 1160 1089 public function test_misc_static_replacements( $input, $output ) { … … 1212 1141 * @ticket 8775 1213 1142 * @dataProvider data_quoted_numbers 1214 *1215 * @covers ::wptexturize1216 1143 */ 1217 1144 public function test_quoted_numbers( $input, $output ) { … … 1265 1192 * @ticket 20342 1266 1193 * @dataProvider data_quotes_and_dashes 1267 *1268 * @covers ::wptexturize1269 1194 */ 1270 1195 public function test_quotes_and_dashes( $input, $output ) { … … 1330 1255 * @ticket 12690 1331 1256 * @dataProvider data_tag_avoidance 1332 *1333 * @covers ::wptexturize1334 1257 */ 1335 1258 public function test_tag_avoidance( $input, $output ) { … … 1555 1478 * @ticket 26850 1556 1479 * @dataProvider data_year_abbr 1557 *1558 * @covers ::wptexturize1559 1480 */ 1560 1481 public function test_year_abbr( $input, $output ) { … … 1646 1567 * @ticket 27426 1647 1568 * @dataProvider data_translate 1648 *1649 * @covers ::wptexturize1650 1569 */ 1651 1570 public function test_translate( $input, $output ) { … … 1875 1794 * @ticket 28483 1876 1795 * @dataProvider data_element_stack 1877 *1878 * @covers ::wptexturize1879 1796 */ 1880 1797 public function test_element_stack( $input, $output ) { … … 1928 1845 * @ticket 29557 1929 1846 * @dataProvider data_unregistered_shortcodes 1930 *1931 * @covers ::wptexturize1932 1847 */ 1933 1848 public function test_unregistered_shortcodes( $input, $output ) { … … 2015 1930 * @ticket 29256 2016 1931 * @dataProvider data_primes_vs_quotes 2017 *2018 * @covers ::wptexturize2019 1932 */ 2020 1933 public function test_primes_vs_quotes( $input, $output ) { … … 2079 1992 * @ticket 29256 2080 1993 * @dataProvider data_primes_quotes_translation 2081 *2082 * @covers ::wptexturize2083 1994 */ 2084 1995 public function test_primes_quotes_translation( $input, $output ) { … … 2197 2108 * 2198 2109 * @ticket 35864 2199 *2200 * @covers ::wptexturize2201 2110 */ 2202 2111 public function test_trailing_less_than() {
Note: See TracChangeset
for help on using the changeset viewer.