Changeset 64439
- Timestamp:
- 10/17/2026 06:50:30 PM (5 days ago)
- Location:
- trunk/tests/phpunit/tests/formatting
- Files:
-
- 42 edited
-
antispambot.php (modified) (2 diffs)
-
autopNewlinePreservationHelper.php (modified) (3 diffs)
-
balanceTags.php (modified) (9 diffs)
-
convertSmilies.php (modified) (6 diffs)
-
date.php (modified) (1 diff)
-
emoji.php (modified) (8 diffs)
-
ent2ncr.php (modified) (1 diff)
-
escXml.php (modified) (2 diffs)
-
excerptRemoveFootnotes.php (modified) (1 diff)
-
getBloginfo.php (modified) (1 diff)
-
getUrlInContent.php (modified) (1 diff)
-
humanTimeDiff.php (modified) (2 diffs)
-
linksAddBaseUrl.php (modified) (1 diff)
-
linksAddTarget.php (modified) (1 diff)
-
makeClickable.php (modified) (5 diffs)
-
maybeHashHexColor.php (modified) (1 diff)
-
normalizeWhitespace.php (modified) (1 diff)
-
redirect.php (modified) (4 diffs)
-
sanitizeEmail.php (modified) (1 diff)
-
sanitizeFileName.php (modified) (2 diffs)
-
sanitizeHexColor.php (modified) (1 diff)
-
sanitizeHexColorNoHash.php (modified) (1 diff)
-
sanitizeKey.php (modified) (3 diffs)
-
sanitizeLocaleName.php (modified) (2 diffs)
-
sanitizeOrderby.php (modified) (2 diffs)
-
sanitizeTextField.php (modified) (1 diff)
-
sanitizeTitleWithDashes.php (modified) (4 diffs)
-
sanitizeTrackbackUrls.php (modified) (1 diff)
-
urlShorten.php (modified) (2 diffs)
-
urlencodeDeep.php (modified) (1 diff)
-
utf8UriEncode.php (modified) (1 diff)
-
wpAutop.php (modified) (1 diff)
-
wpHtmlSplit.php (modified) (2 diffs)
-
wpParseStr.php (modified) (2 diffs)
-
wpRelNofollow.php (modified) (1 diff)
-
wpRelUgc.php (modified) (1 diff)
-
wpReplaceInHtmlTags.php (modified) (1 diff)
-
wpSlash.php (modified) (1 diff)
-
wpSpecialchars.php (modified) (2 diffs)
-
wpStripAllTags.php (modified) (2 diffs)
-
wpTexturize.php (modified) (24 diffs)
-
wpTruncateSlug.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/antispambot.php
r62829 r64439 29 29 * return array[] 30 30 */ 31 public function data_returns_valid_utf8() {31 public static function data_returns_valid_utf8() { 32 32 return array( 33 33 'plain' => array( 'bob@example.com' ), … … 77 77 * @return Generator 78 78 */ 79 public function data_antispambot_obfuscates() {79 public static function data_antispambot_obfuscates() { 80 80 $addresses = array( 81 81 'example@example.com', -
trunk/tests/phpunit/tests/formatting/autopNewlinePreservationHelper.php
r64008 r64439 27 27 * @return array[] 28 28 */ 29 public function data_should_replace_newlines_with_placeholders() {29 public static function data_should_replace_newlines_with_placeholders() { 30 30 return array( 31 31 'an empty string' => array( … … 90 90 * @return array[] 91 91 */ 92 public function data_should_only_replace_line_feeds() {92 public static function data_should_only_replace_line_feeds() { 93 93 return array( 94 94 'a carriage return' => array( … … 152 152 * @return array[] 153 153 */ 154 public function data_should_preserve_newlines_as_a_preg_replace_callback() {154 public static function data_should_preserve_newlines_as_a_preg_replace_callback() { 155 155 return array( 156 156 'a script element' => array( -
trunk/tests/phpunit/tests/formatting/balanceTags.php
r64436 r64439 18 18 } 19 19 20 public function data_supported_traditional_tag_names() {20 public static function data_supported_traditional_tag_names() { 21 21 return array( 22 22 array( 'a' ), … … 38 38 } 39 39 40 public function data_supported_custom_element_tag_names() {40 public static function data_supported_custom_element_tag_names() { 41 41 return array( 42 42 array( 'custom-element' ), … … 58 58 } 59 59 60 public function data_invalid_tag_names() {60 public static function data_invalid_tag_names() { 61 61 return array( 62 62 array( '<0-day>inside', '<0-day>inside' ), // Can't start with a number - handled by the "<3" fix. … … 78 78 * @link https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name 79 79 */ 80 public function data_unsupported_valid_tag_names() {80 public static function data_unsupported_valid_tag_names() { 81 81 return array( 82 82 // We don't allow ending in a dash. … … 146 146 * @link https://w3c.github.io/webcomponents/spec/custom/#valid-custom-element-name 147 147 */ 148 public function data_supported_invalid_tag_names() {148 public static function data_supported_invalid_tag_names() { 149 149 return array( 150 150 // Reserved names for custom elements. … … 182 182 183 183 // This is a complete(?) listing of valid single/self-closing tags. 184 public function data_single_tags() {184 public static function data_single_tags() { 185 185 return array( 186 186 array( 'area' ), … … 220 220 * @return array<string, array<string, string>> 221 221 */ 222 public function data_unknown_single_tags_with_closing_tag() {222 public static function data_unknown_single_tags_with_closing_tag() { 223 223 return array( 224 224 'default' => array( '<strong/>', '<strong></strong>' ), … … 279 279 } 280 280 281 public function data_nestable_tags() {281 public static function data_nestable_tags() { 282 282 return array( 283 283 array( 'article' ), … … 391 391 * @return array Data. 392 392 */ 393 public function data_custom_elements() {393 public static function data_custom_elements() { 394 394 return array( 395 395 // Valid custom element tags. -
trunk/tests/phpunit/tests/formatting/convertSmilies.php
r59516 r64439 40 40 * } 41 41 */ 42 public function data_convert_standard_smilies() {42 public static function data_convert_standard_smilies() { 43 43 $includes_path = includes_url( 'images/smilies/' ); 44 44 … … 110 110 * } 111 111 */ 112 public function data_convert_custom_smilies() {112 public static function data_convert_custom_smilies() { 113 113 $includes_path = includes_url( 'images/smilies/' ); 114 114 … … 154 154 * } 155 155 */ 156 public function data_ignore_smilies_in_tags() {156 public static function data_ignore_smilies_in_tags() { 157 157 return array( 158 158 array( 'pre' ), … … 190 190 * } 191 191 */ 192 public function data_smilies_combinations() {192 public static function data_smilies_combinations() { 193 193 $includes_path = includes_url( 'images/smilies/' ); 194 194 … … 259 259 * } 260 260 */ 261 public function data_single_smilies_in_wpsmiliestrans() {261 public static function data_single_smilies_in_wpsmiliestrans() { 262 262 $includes_path = includes_url( 'images/smilies/' ); 263 263 … … 302 302 * } 303 303 */ 304 public function data_spaces_around_smilies() {304 public static function data_spaces_around_smilies() { 305 305 $nbsp = "\xC2\xA0"; 306 306 -
trunk/tests/phpunit/tests/formatting/date.php
r58458 r64439 232 232 * @return array 233 233 */ 234 public function data_timezone_provider() {234 public static function data_timezone_provider() { 235 235 return array( 236 236 'valid timezone string and GMT offset' => array( -
trunk/tests/phpunit/tests/formatting/emoji.php
r62410 r64439 7 7 class Tests_Formatting_Emoji extends WP_UnitTestCase { 8 8 9 private $png_cdn = 'https://s.w.org/images/core/emoji/17.0.2/72x72/';10 private $svg_cdn = 'https://s.w.org/images/core/emoji/17.0.2/svg/';9 private static $png_cdn = 'https://s.w.org/images/core/emoji/17.0.2/72x72/'; 10 private static $svg_cdn = 'https://s.w.org/images/core/emoji/17.0.2/svg/'; 11 11 12 12 /** … … 193 193 array_keys( $settings ) 194 194 ); 195 $this->assertSame( $this->png_cdn, $settings['baseUrl'] );195 $this->assertSame( self::$png_cdn, $settings['baseUrl'] ); 196 196 $this->assertSame( '.png', $settings['ext'] ); 197 $this->assertSame( $this->svg_cdn, $settings['svgUrl'] );197 $this->assertSame( self::$svg_cdn, $settings['svgUrl'] ); 198 198 $this->assertSame( '.svg', $settings['svgExt'] ); 199 199 $this->assertIsArray( $settings['source'] ); … … 217 217 $output = get_echo( '_print_emoji_detection_script' ); 218 218 219 $this->assertStringContainsString( wp_json_encode( $this->png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output );220 $this->assertStringContainsString( wp_json_encode( $this->svg_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output );219 $this->assertStringContainsString( wp_json_encode( self::$png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 220 $this->assertStringContainsString( wp_json_encode( self::$svg_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 221 221 } 222 222 … … 239 239 $output = get_echo( '_print_emoji_detection_script' ); 240 240 241 $this->assertStringContainsString( wp_json_encode( $this->png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output );242 $this->assertStringNotContainsString( wp_json_encode( $this->svg_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output );241 $this->assertStringContainsString( wp_json_encode( self::$png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 242 $this->assertStringNotContainsString( wp_json_encode( self::$svg_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 243 243 $this->assertStringContainsString( wp_json_encode( $filtered_svn_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 244 244 … … 265 265 266 266 $this->assertStringContainsString( wp_json_encode( $filtered_png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 267 $this->assertStringNotContainsString( wp_json_encode( $this->png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output );268 $this->assertStringContainsString( wp_json_encode( $this->svg_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output );267 $this->assertStringNotContainsString( wp_json_encode( self::$png_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 268 $this->assertStringContainsString( wp_json_encode( self::$svg_cdn, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), $output ); 269 269 270 270 remove_filter( 'emoji_url', array( $this, '_filtered_emoji_png_cdn' ) ); … … 296 296 } 297 297 298 public function data_wp_encode_emoji() {298 public static function data_wp_encode_emoji() { 299 299 return array( 300 300 array( … … 336 336 } 337 337 338 public function data_wp_staticize_emoji() {338 public static function data_wp_staticize_emoji() { 339 339 $data = array( 340 340 array( … … 346 346 // Simple emoji. 347 347 '🙂', 348 '<img src="' . $this->png_cdn . '1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" />',348 '<img src="' . self::$png_cdn . '1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" />', 349 349 ), 350 350 array( 351 351 // Skin tone, gender, ZWJ, emoji selector. 352 352 '👮🏼♀️', 353 '<img src="' . $this->png_cdn . '1f46e-1f3fc-200d-2640-fe0f.png" alt="👮🏼♀️" class="wp-smiley" style="height: 1em; max-height: 1em;" />',353 '<img src="' . self::$png_cdn . '1f46e-1f3fc-200d-2640-fe0f.png" alt="👮🏼♀️" class="wp-smiley" style="height: 1em; max-height: 1em;" />', 354 354 ), 355 355 array( 356 356 // Unicode 10. 357 357 '🧚', 358 '<img src="' . $this->png_cdn . '1f9da.png" alt="🧚" class="wp-smiley" style="height: 1em; max-height: 1em;" />',358 '<img src="' . self::$png_cdn . '1f9da.png" alt="🧚" class="wp-smiley" style="height: 1em; max-height: 1em;" />', 359 359 ), 360 360 array( 361 361 // Hairy creature (Unicode 17). 362 362 '', 363 '<img src="' . $this->png_cdn . '1fac8.png" alt="" class="wp-smiley" style="height: 1em; max-height: 1em;" />',363 '<img src="' . self::$png_cdn . '1fac8.png" alt="" class="wp-smiley" style="height: 1em; max-height: 1em;" />', 364 364 ), 365 365 ); -
trunk/tests/phpunit/tests/formatting/ent2ncr.php
r56536 r64439 20 20 * Comments start with "###". 21 21 */ 22 public function data_entities() {22 public static function data_entities() { 23 23 $entities = file( DIR_TESTDATA . '/formatting/entities.txt' ); 24 24 $data_provided = array(); -
trunk/tests/phpunit/tests/formatting/escXml.php
r55562 r64439 28 28 * } 29 29 */ 30 public function data_esc_xml_basics() {30 public static function data_esc_xml_basics() { 31 31 return array( 32 32 // Simple string. … … 103 103 * } 104 104 */ 105 public function data_ignores_cdata_sections() {105 public static function data_ignores_cdata_sections() { 106 106 return array( 107 107 // basic CDATA Section containing chars that would otherwise be escaped if not in a CDATA Section -
trunk/tests/phpunit/tests/formatting/excerptRemoveFootnotes.php
r56244 r64439 25 25 * @return array 26 26 */ 27 public function data_remove_footnotes() {27 public static function data_remove_footnotes() { 28 28 return array( 29 29 'no footnote' => array( -
trunk/tests/phpunit/tests/formatting/getBloginfo.php
r55562 r64439 23 23 } 24 24 25 public function data_get_bloginfo_language() {25 public static function data_get_bloginfo_language() { 26 26 return array( 27 27 // Locale, language code. -
trunk/tests/phpunit/tests/formatting/getUrlInContent.php
r55563 r64439 27 27 * } 28 28 */ 29 public function data_get_url_in_content() {29 public static function data_get_url_in_content() { 30 30 return array( 31 31 array( // Empty content. -
trunk/tests/phpunit/tests/formatting/humanTimeDiff.php
r64342 r64439 20 20 21 21 // Data for test_human_time_diff. 22 public function data_human_time_diff() {22 public static function data_human_time_diff() { 23 23 return array( 24 24 array( … … 95 95 * @return array<non-falsy-string, array{ 0: non-negative-int, 1: non-falsy-string }> 96 96 */ 97 public function data_human_time_diff_unit_boundaries(): array {97 public static function data_human_time_diff_unit_boundaries(): array { 98 98 return array( 99 99 'no difference' => array( 0, '1 second' ), -
trunk/tests/phpunit/tests/formatting/linksAddBaseUrl.php
r59163 r64439 35 35 * } 36 36 */ 37 public function data_links_add_base_url() {37 public static function data_links_add_base_url() { 38 38 return array( 39 39 'https' => array( -
trunk/tests/phpunit/tests/formatting/linksAddTarget.php
r59163 r64439 36 36 * } 37 37 */ 38 public function data_links_add_target() {38 public static function data_links_add_target() { 39 39 return array( 40 40 array( -
trunk/tests/phpunit/tests/formatting/makeClickable.php
r59143 r64439 26 26 * @return array 27 27 */ 28 public function data_valid_mailto() {28 public static function data_valid_mailto() { 29 29 return array( 30 30 array( 'foo@example.com' ), … … 50 50 * @return array 51 51 */ 52 public function data_invalid_mailto() {52 public static function data_invalid_mailto() { 53 53 return array( 54 54 array( 'foo' ), … … 82 82 * @return array 83 83 */ 84 public function data_urls() {84 public static function data_urls() { 85 85 return array( 86 86 // Does not link trailing periods, commas, and (semi-)colons in URLs with protocol (i.e. http://wordpress.org). … … 464 464 } 465 465 466 public function data_script_and_style_tags() {466 public static function data_script_and_style_tags() { 467 467 return array( 468 468 array( … … 500 500 } 501 501 502 public function data_add_rel_ugc_in_comments() {502 public static function data_add_rel_ugc_in_comments() { 503 503 $home_url_http = set_url_scheme( home_url(), 'http' ); 504 504 $home_url_https = set_url_scheme( home_url(), 'https' ); -
trunk/tests/phpunit/tests/formatting/maybeHashHexColor.php
r57735 r64439 27 27 * @return array[] 28 28 */ 29 public function data_sanitize_hex_color_no_hash() {29 public static function data_sanitize_hex_color_no_hash() { 30 30 return array( 31 31 '$maybe_alpha = false, 3 digit' => array( -
trunk/tests/phpunit/tests/formatting/normalizeWhitespace.php
r62489 r64439 26 26 * } 27 27 */ 28 public function data_normalize_whitespace() {28 public static function data_normalize_whitespace() { 29 29 return array( 30 30 array( -
trunk/tests/phpunit/tests/formatting/redirect.php
r58070 r64439 32 32 } 33 33 34 public function data_wp_redirect_bad_status_code() {34 public static function data_wp_redirect_bad_status_code() { 35 35 return array( 36 36 // Tests for bad arguments. … … 85 85 } 86 86 87 public function data_wp_validate_redirect_valid_url() {87 public static function data_wp_validate_redirect_valid_url() { 88 88 return array( 89 89 array( 'http://example.com', 'http://example.com' ), … … 113 113 } 114 114 115 public function data_wp_validate_redirect_invalid_url() {115 public static function data_wp_validate_redirect_invalid_url() { 116 116 return array( 117 117 // parse_url() fails. … … 222 222 * } 223 223 */ 224 public function data_wp_validate_redirect_relative_url() {224 public static function data_wp_validate_redirect_relative_url() { 225 225 return array( 226 226 array( -
trunk/tests/phpunit/tests/formatting/sanitizeEmail.php
r62829 r64439 40 40 * @return array[] 41 41 */ 42 public function data_sanitized_email_pairs() {42 public static function data_sanitized_email_pairs() { 43 43 return array( 44 44 'shorter than 6 characters' => array( 'a@b', '' ), -
trunk/tests/phpunit/tests/formatting/sanitizeFileName.php
r60399 r64439 92 92 } 93 93 94 public function data_wp_filenames() {94 public static function data_wp_filenames() { 95 95 return array( 96 96 array( urldecode( '%B1myfile.png' ), 'myfile.png' ), … … 121 121 * @return array[] 122 122 */ 123 public function data_sanitize_file_name_should_replace_consecutive_periods_with_a_single_period() {123 public static function data_sanitize_file_name_should_replace_consecutive_periods_with_a_single_period() { 124 124 return array( 125 125 'consecutive periods at the start' => array( -
trunk/tests/phpunit/tests/formatting/sanitizeHexColor.php
r57735 r64439 27 27 * @return array[] 28 28 */ 29 public function data_sanitize_hex_color() {29 public static function data_sanitize_hex_color() { 30 30 return array( 31 31 '$maybe_alpha = false, 3 digit' => array( -
trunk/tests/phpunit/tests/formatting/sanitizeHexColorNoHash.php
r57735 r64439 27 27 * @return array[] 28 28 */ 29 public function data_sanitize_hex_color_no_hash() {29 public static function data_sanitize_hex_color_no_hash() { 30 30 return array( 31 31 '$maybe_alpha = false, 3 digit' => array( -
trunk/tests/phpunit/tests/formatting/sanitizeKey.php
r62638 r64439 24 24 * @return array 25 25 */ 26 public function data_sanitize_key() {26 public static function data_sanitize_key() { 27 27 return array( 28 28 'an empty string key' => array( … … 77 77 * @return array 78 78 */ 79 public function data_sanitize_key_nonstring_scalar() {79 public static function data_sanitize_key_nonstring_scalar() { 80 80 return array( 81 81 'integer type' => array( … … 123 123 * @return array 124 124 */ 125 public function data_sanitize_key_with_non_scalars() {125 public static function data_sanitize_key_with_non_scalars() { 126 126 return array( 127 127 'array type' => array( -
trunk/tests/phpunit/tests/formatting/sanitizeLocaleName.php
r64122 r64439 14 14 } 15 15 16 public function data_sanitize_locale_name_returns_non_empty_string() {16 public static function data_sanitize_locale_name_returns_non_empty_string() { 17 17 return array( 18 18 // array( expected, input ) … … 38 38 } 39 39 40 public function data_sanitize_locale_name_returns_empty_string() {40 public static function data_sanitize_locale_name_returns_empty_string() { 41 41 return array( 42 42 // array( input ) -
trunk/tests/phpunit/tests/formatting/sanitizeOrderby.php
r55562 r64439 14 14 $this->assertSame( $orderby, sanitize_sql_orderby( $orderby ) ); 15 15 } 16 public function data_sanitize_sql_orderby_valid() {16 public static function data_sanitize_sql_orderby_valid() { 17 17 return array( 18 18 array( '1' ), … … 40 40 $this->assertFalse( sanitize_sql_orderby( $orderby ) ); 41 41 } 42 public function data_sanitize_sql_orderby_invalid() {42 public static function data_sanitize_sql_orderby_invalid() { 43 43 return array( 44 44 array( '' ), -
trunk/tests/phpunit/tests/formatting/sanitizeTextField.php
r64233 r64439 25 25 } 26 26 27 public function data_sanitize_text_field() {27 public static function data_sanitize_text_field() { 28 28 return array( 29 29 array( -
trunk/tests/phpunit/tests/formatting/sanitizeTitleWithDashes.php
r61061 r64439 181 181 * @return array 182 182 */ 183 public function data_removes_non_visible_characters_without_width() {183 public static function data_removes_non_visible_characters_without_width() { 184 184 return array( 185 185 // Only the non-visible characters. … … 234 234 * @return array 235 235 */ 236 public function data_non_visible_characters_without_width_when_not_save() {236 public static function data_non_visible_characters_without_width_when_not_save() { 237 237 return array( 238 238 // Just the non-visible characters. … … 286 286 * @return array 287 287 */ 288 public function data_converts_non_visible_characters_with_width_to_hyphen() {288 public static function data_converts_non_visible_characters_with_width_to_hyphen() { 289 289 return array( 290 290 // Only the non-visible characters. … … 344 344 * @return array 345 345 */ 346 public function data_non_visible_characters_with_width_to_hyphen_when_not_save() {346 public static function data_non_visible_characters_with_width_to_hyphen_when_not_save() { 347 347 return array( 348 348 // Just the non-visible characters. -
trunk/tests/phpunit/tests/formatting/sanitizeTrackbackUrls.php
r55562 r64439 18 18 } 19 19 20 public function data_sanitize_trackback_urls_with_multiple_urls() {20 public static function data_sanitize_trackback_urls_with_multiple_urls() { 21 21 return array( 22 22 array( "\r\n\t " ), -
trunk/tests/phpunit/tests/formatting/urlShorten.php
r62768 r64439 18 18 } 19 19 20 public function data_url_shorten() {20 public static function data_url_shorten() { 21 21 // When shortened, the URL is cut to ( $length - 3 ) characters before '…' is appended. 22 22 return array( … … 61 61 } 62 62 63 public function data_url_shorten_custom_length() {63 public static function data_url_shorten_custom_length() { 64 64 // The URL below is 41 characters long after cleaning. 65 65 $url = 'http://wordpress.org/about/philosophy/#decisions'; -
trunk/tests/phpunit/tests/formatting/urlencodeDeep.php
r56547 r64439 24 24 * Data provider. 25 25 */ 26 public function data_urlencode_deep() {26 public static function data_urlencode_deep() { 27 27 return array( 28 28 array( 'qwerty123456', 'qwerty123456' ), -
trunk/tests/phpunit/tests/formatting/utf8UriEncode.php
r58235 r64439 26 26 } 27 27 28 public function data() {28 public static function data() { 29 29 $utf8_urls = file( DIR_TESTDATA . '/formatting/utf-8/utf-8.txt' ); 30 30 $urlencoded = file( DIR_TESTDATA . '/formatting/utf-8/urlencoded.txt' ); -
trunk/tests/phpunit/tests/formatting/wpAutop.php
r59784 r64439 501 501 } 502 502 503 public function data_element_sanity() {503 public static function data_element_sanity() { 504 504 return array( 505 505 array( -
trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php
r54728 r64439 17 17 } 18 18 19 public function data_basic_features() {19 public static function data_basic_features() { 20 20 return array( 21 21 array( … … 51 51 } 52 52 53 public function data_whole_posts() {53 public static function data_whole_posts() { 54 54 require_once DIR_TESTDATA . '/formatting/whole-posts.php'; 55 55 return data_whole_posts(); -
trunk/tests/phpunit/tests/formatting/wpParseStr.php
r55563 r64439 29 29 * @return array 30 30 */ 31 public function data_wp_parse_str() {31 public static function data_wp_parse_str() { 32 32 return array( 33 33 'null' => array( … … 104 104 * @return array 105 105 */ 106 public function data_wp_parse_str_result_array_is_always_overwritten() {106 public static function data_wp_parse_str_result_array_is_always_overwritten() { 107 107 // Standard value for expected output. 108 108 $expected = array( -
trunk/tests/phpunit/tests/formatting/wpRelNofollow.php
r60974 r64439 34 34 } 35 35 36 public function data_wp_rel_nofollow() {36 public static function data_wp_rel_nofollow() { 37 37 $home_url_http = set_url_scheme( home_url(), 'http' ); 38 38 $home_url_https = set_url_scheme( home_url(), 'https' ); -
trunk/tests/phpunit/tests/formatting/wpRelUgc.php
r60485 r64439 34 34 } 35 35 36 public function data_wp_rel_ugc() {36 public static function data_wp_rel_ugc() { 37 37 $home_url_http = set_url_scheme( home_url(), 'http' ); 38 38 $home_url_https = set_url_scheme( home_url(), 'https' ); -
trunk/tests/phpunit/tests/formatting/wpReplaceInHtmlTags.php
r56536 r64439 16 16 } 17 17 18 public function data_wp_replace_in_html_tags() {18 public static function data_wp_replace_in_html_tags() { 19 19 return array( 20 20 array( -
trunk/tests/phpunit/tests/formatting/wpSlash.php
r61590 r64439 30 30 * } 31 31 */ 32 public function data_wp_slash() {32 public static function data_wp_slash() { 33 33 return array( 34 34 array( 123, 123 ), -
trunk/tests/phpunit/tests/formatting/wpSpecialchars.php
r60251 r64439 59 59 } 60 60 61 public function data_double_encoding() {61 public static function data_double_encoding() { 62 62 return array( 63 63 array( … … 86 86 } 87 87 88 public function data_no_double_encoding() {88 public static function data_no_double_encoding() { 89 89 return array( 90 90 array( -
trunk/tests/phpunit/tests/formatting/wpStripAllTags.php
r57735 r64439 64 64 * @return array[] 65 65 */ 66 public function data_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg() {66 public static function data_wp_strip_all_tags_should_return_empty_string_and_trigger_an_error_for_non_string_arg() { 67 67 return array( 68 68 'an empty array' => array( 'non_string' => array() ), … … 91 91 * @return array[] 92 92 */ 93 public function data_wp_strip_all_tags_should_cast_scalar_values_to_string() {93 public static function data_wp_strip_all_tags_should_cast_scalar_values_to_string() { 94 94 return array( 95 95 '(int) 0' => array( 'text' => 0 ), -
trunk/tests/phpunit/tests/formatting/wpTexturize.php
r63934 r64439 272 272 } 273 273 274 public function data_spaces_around_quotes() {274 public static function data_spaces_around_quotes() { 275 275 $nbsp = "\xC2\xA0"; 276 276 $pi = "\xCE\xA0"; … … 328 328 } 329 329 330 public function data_apos_before_digits() {330 public static function data_apos_before_digits() { 331 331 return array( 332 332 array( … … 369 369 } 370 370 371 public function data_opening_single_quote() {371 public static function data_opening_single_quote() { 372 372 return array( 373 373 array( … … 498 498 } 499 499 500 public function data_double_prime() {500 public static function data_double_prime() { 501 501 return array( 502 502 array( … … 531 531 } 532 532 533 public function data_single_prime() {533 public static function data_single_prime() { 534 534 return array( 535 535 array( … … 564 564 } 565 565 566 public function data_contractions() {566 public static function data_contractions() { 567 567 return array( 568 568 array( … … 605 605 } 606 606 607 public function data_opening_quote() {607 public static function data_opening_quote() { 608 608 return array( 609 609 array( … … 682 682 } 683 683 684 public function data_closing_quote() {684 public static function data_closing_quote() { 685 685 return array( 686 686 array( … … 771 771 } 772 772 773 public function data_closing_single_quote() {773 public static function data_closing_single_quote() { 774 774 return array( 775 775 array( … … 861 861 } 862 862 863 public function data_multiplication() {863 public static function data_multiplication() { 864 864 return array( 865 865 array( … … 911 911 } 912 912 913 public function data_ampersand() {913 public static function data_ampersand() { 914 914 return array( 915 915 array( … … 976 976 } 977 977 978 public function data_cockney() {978 public static function data_cockney() { 979 979 return array( 980 980 array( … … 1037 1037 } 1038 1038 1039 public function data_smart_dashes() {1039 public static function data_smart_dashes() { 1040 1040 return array( 1041 1041 array( … … 1090 1090 } 1091 1091 1092 public function data_misc_static_replacements() {1092 public static function data_misc_static_replacements() { 1093 1093 return array( 1094 1094 array( … … 1145 1145 } 1146 1146 1147 public function data_quoted_numbers() {1147 public static function data_quoted_numbers() { 1148 1148 return array( 1149 1149 array( … … 1196 1196 } 1197 1197 1198 public function data_quotes_and_dashes() {1198 public static function data_quotes_and_dashes() { 1199 1199 return array( 1200 1200 array( … … 1259 1259 } 1260 1260 1261 public function data_tag_avoidance() {1261 public static function data_tag_avoidance() { 1262 1262 return array( 1263 1263 array( … … 1482 1482 } 1483 1483 1484 public function data_year_abbr() {1484 public static function data_year_abbr() { 1485 1485 return array( 1486 1486 array( … … 1607 1607 } 1608 1608 1609 public function data_translate() {1609 public static function data_translate() { 1610 1610 return array( 1611 1611 array( … … 1798 1798 } 1799 1799 1800 public function data_element_stack() {1800 public static function data_element_stack() { 1801 1801 return array( 1802 1802 array( … … 1859 1859 } 1860 1860 1861 public function data_unregistered_shortcodes() {1861 public static function data_unregistered_shortcodes() { 1862 1862 return array( 1863 1863 array( … … 1934 1934 } 1935 1935 1936 public function data_primes_vs_quotes() {1936 public static function data_primes_vs_quotes() { 1937 1937 return array( 1938 1938 array( … … 2030 2030 } 2031 2031 2032 public function data_primes_quotes_translation() {2032 public static function data_primes_quotes_translation() { 2033 2033 return array( 2034 2034 array( … … 2112 2112 } 2113 2113 2114 public function data_whole_posts() {2114 public static function data_whole_posts() { 2115 2115 require_once DIR_TESTDATA . '/formatting/whole-posts.php'; 2116 2116 return data_whole_posts(); -
trunk/tests/phpunit/tests/formatting/wpTruncateSlug.php
r63909 r64439 30 30 * @return array[] 31 31 */ 32 public function data_wp_truncate_slug_should_truncate() {32 public static function data_wp_truncate_slug_should_truncate() { 33 33 return array( 34 34 'a slug that is too long' => array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)