Changeset 54728 for trunk/tests/phpunit/tests/formatting/wpTexturize.php
- Timestamp:
- 10/31/2022 01:54:00 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.