Changeset 64440
- Timestamp:
- 10/17/2026 06:53:58 PM (5 days ago)
- Location:
- trunk/tests/phpunit/tests/functions
- Files:
-
- 51 edited
-
absint.php (modified) (4 diffs)
-
addMagicQuotes.php (modified) (1 diff)
-
allowedProtocols.php (modified) (1 diff)
-
anonymization.php (modified) (2 diffs)
-
cleanDirsizeCache.php (modified) (2 diffs)
-
cleanupHeaderComment.php (modified) (1 diff)
-
doEnclose.php (modified) (1 diff)
-
forceSslAdmin.php (modified) (1 diff)
-
getFileData.php (modified) (1 diff)
-
getNonCachedIds.php (modified) (2 diffs)
-
getStatusHeaderDesc.php (modified) (1 diff)
-
getTagRegex.php (modified) (1 diff)
-
isNewDay.php (modified) (1 diff)
-
isPhpVersionCompatible.php (modified) (1 diff)
-
isSerialized.php (modified) (3 diffs)
-
isSerializedString.php (modified) (1 diff)
-
isWpVersionCompatible.php (modified) (3 diffs)
-
listFiles.php (modified) (1 diff)
-
maybeSerialize.php (modified) (3 diffs)
-
removeQueryArg.php (modified) (1 diff)
-
sizeFormat.php (modified) (1 diff)
-
wpAdminNotice.php (modified) (1 diff)
-
wpArraySliceAssoc.php (modified) (1 diff)
-
wpCacheGetSalted.php (modified) (1 diff)
-
wpCheckAlternateFileNames.php (modified) (1 diff)
-
wpCheckFiletype.php (modified) (1 diff)
-
wpFilesize.php (modified) (2 diffs)
-
wpFuzzyNumberMatch.php (modified) (1 diff)
-
wpGetAdminNotice.php (modified) (2 diffs)
-
wpGuessUrl.php (modified) (1 diff)
-
wpHash.php (modified) (1 diff)
-
wpIsNumericArray.php (modified) (1 diff)
-
wpListFilter.php (modified) (1 diff)
-
wpListPluck.php (modified) (1 diff)
-
wpListSort.php (modified) (2 diffs)
-
wpListUtil.php (modified) (7 diffs)
-
wpMysqlWeek.php (modified) (1 diff)
-
wpNonceField.php (modified) (1 diff)
-
wpNonceUrl.php (modified) (2 diffs)
-
wpParseIdList.php (modified) (2 diffs)
-
wpParseList.php (modified) (1 diff)
-
wpParseSlugList.php (modified) (2 diffs)
-
wpRefererField.php (modified) (1 diff)
-
wpTimezoneChoice.php (modified) (3 diffs)
-
wpTimezoneChoiceUsortCallback.php (modified) (1 diff)
-
wpTimezoneOverrideOffset.php (modified) (3 diffs)
-
wpToKebabCase.php (modified) (1 diff)
-
wpTriggerError.php (modified) (1 diff)
-
wpUniqueIdFromValues.php (modified) (2 diffs)
-
wpUniquePrefixedId.php (modified) (3 diffs)
-
wpValidateBoolean.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/absint.php
r63646 r64440 27 27 * @return array<non-falsy-string, array{ test_value: mixed, expected_value: non-negative-int }> 28 28 */ 29 public function data_absint(): array {29 public static function data_absint(): array { 30 30 return array( 31 31 '1 int' => array( … … 100 100 * @return array<non-falsy-string, array{ test_value: mixed, expected_value: non-negative-int }> 101 101 */ 102 public function data_absint_other_types(): array {102 public static function data_absint_other_types(): array { 103 103 /* 104 104 * The largest power of two which fits in an integer, and which is therefore … … 185 185 * @return array<non-falsy-string, array{ test_value: mixed, expected_value: non-negative-int }> 186 186 */ 187 public function data_absint_extreme_values(): array {187 public static function data_absint_extreme_values(): array { 188 188 return array( 189 189 'PHP_INT_MAX' => array( … … 243 243 * @return array<non-falsy-string, array{ test_value: float, expected_value: non-negative-int }> 244 244 */ 245 public function data_absint_unrepresentable_floats(): array {245 public static function data_absint_unrepresentable_floats(): array { 246 246 return array( 247 247 '(float) PHP_INT_MAX (2^63)' => array( -
trunk/tests/phpunit/tests/functions/addMagicQuotes.php
r57735 r64440 29 29 * } 30 30 */ 31 public function data_add_magic_quotes() {31 public static function data_add_magic_quotes() { 32 32 return array( 33 33 array( -
trunk/tests/phpunit/tests/functions/allowedProtocols.php
r62957 r64440 43 43 * @return array[] 44 44 */ 45 public function data_example_urls() {45 public static function data_example_urls() { 46 46 return array( 47 47 array( 'http', 'http://example.com' ), // RFC7230 -
trunk/tests/phpunit/tests/functions/anonymization.php
r57099 r64440 47 47 * } 48 48 */ 49 public function data_wp_privacy_anonymize_ip() {49 public static function data_wp_privacy_anonymize_ip() { 50 50 return array( 51 51 // Invalid IP. … … 201 201 * } 202 202 */ 203 public function data_wp_privacy_anonymize_ip_with_inet_dependency() {203 public static function data_wp_privacy_anonymize_ip_with_inet_dependency() { 204 204 return array( 205 205 // Malformed string with valid IP substring. Sometimes proxies add things like this, or other arbitrary strings. -
trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php
r57987 r64440 32 32 * @return array 33 33 */ 34 public function data_clean_dirsize_cache_with_invalid_inputs() {34 public static function data_clean_dirsize_cache_with_invalid_inputs() { 35 35 return array( 36 36 'null' => array( … … 79 79 * @return array 80 80 */ 81 public function data_clean_dirsize_cache_with_non_path_string() {81 public static function data_clean_dirsize_cache_with_non_path_string() { 82 82 return array( 83 83 'single dot' => array( -
trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php
r56971 r64440 32 32 * } 33 33 */ 34 public function data_cleanup_header_comment() {34 public static function data_cleanup_header_comment() { 35 35 return array( 36 36 // Set 0: A string. -
trunk/tests/phpunit/tests/functions/doEnclose.php
r62957 r64440 74 74 * } 75 75 */ 76 public function data_do_enclose() {76 public static function data_do_enclose() { 77 77 return array( 78 78 'null' => array( -
trunk/tests/phpunit/tests/functions/forceSslAdmin.php
r63640 r64440 45 45 * @return array[] 46 46 */ 47 public function data_force_ssl_admin() {47 public static function data_force_ssl_admin() { 48 48 return array( 49 49 'default' => array( null, false ), -
trunk/tests/phpunit/tests/functions/getFileData.php
r62803 r64440 47 47 * }> 48 48 */ 49 public function data_test_get_data_file() {49 public static function data_test_get_data_file() { 50 50 return array( 51 51 'theme headers' => array( -
trunk/tests/phpunit/tests/functions/getNonCachedIds.php
r56971 r64440 46 46 * @return array[] 47 47 */ 48 public function data_valid_ids_should_be_returned_as_integers() {48 public static function data_valid_ids_should_be_returned_as_integers() { 49 49 return array( 50 50 '(int) 1' => array( 1 ), … … 88 88 * @return array[] 89 89 */ 90 public function data_invalid_cache_ids_should_throw_a_notice() {90 public static function data_invalid_cache_ids_should_throw_a_notice() { 91 91 return array( 92 92 'null' => array( null ), -
trunk/tests/phpunit/tests/functions/getStatusHeaderDesc.php
r62593 r64440 27 27 * @return array[] 28 28 */ 29 public function data_get_status_header_desc() {29 public static function data_get_status_header_desc() { 30 30 return array( 31 31 array( 200, 'OK' ), -
trunk/tests/phpunit/tests/functions/getTagRegex.php
r63331 r64440 37 37 * @return array[] 38 38 */ 39 public function data_get_tag_regex_matches() {39 public static function data_get_tag_regex_matches() { 40 40 // Each case embeds the element(s) within surrounding HTML, mirroring the 41 41 // original usage in get_media_embedded_in_content(), which is passed a -
trunk/tests/phpunit/tests/functions/isNewDay.php
r57735 r64440 33 33 * @return array[] 34 34 */ 35 public function data_is_new_date() {35 public static function data_is_new_date() { 36 36 return array( 37 37 array( '21.05.19', '21.05.19', 0 ), -
trunk/tests/phpunit/tests/functions/isPhpVersionCompatible.php
r57735 r64440 28 28 * @return array[] 29 29 */ 30 public function data_is_php_version_compatible() {30 public static function data_is_php_version_compatible() { 31 31 $php_version = PHP_VERSION; 32 32 -
trunk/tests/phpunit/tests/functions/isSerialized.php
r57735 r64440 28 28 * @return array[] 29 29 */ 30 public function data_is_serialized() {30 public static function data_is_serialized() { 31 31 return array( 32 32 'serialized empty array' => array( … … 100 100 * @return array[] 101 101 */ 102 public function data_is_not_serialized() {102 public static function data_is_not_serialized() { 103 103 return array( 104 104 'an empty array' => array( … … 198 198 * @return array[] 199 199 */ 200 public function data_is_serialized_should_return_true_for_large_floats() {200 public static function data_is_serialized_should_return_true_for_large_floats() { 201 201 return array( 202 202 array( serialize( 1.7976931348623157E+308 ) ), -
trunk/tests/phpunit/tests/functions/isSerializedString.php
r57735 r64440 27 27 * @return array[] 28 28 */ 29 public function data_is_serialized_string() {29 public static function data_is_serialized_string() { 30 30 return array( 31 31 'an array' => array( -
trunk/tests/phpunit/tests/functions/isWpVersionCompatible.php
r58843 r64440 61 61 * @return array[] 62 62 */ 63 public function data_is_wp_version_compatible() {63 public static function data_is_wp_version_compatible() { 64 64 $wp_version = wp_get_wp_version(); 65 65 $version_parts = explode( '.', $wp_version ); … … 153 153 * @return array[] 154 154 */ 155 public function data_is_wp_version_compatible_should_gracefully_handle_trailing_point_zero_version_numbers() {155 public static function data_is_wp_version_compatible_should_gracefully_handle_trailing_point_zero_version_numbers() { 156 156 return array( 157 157 'an incorrect trailing .0 and the same version' => array( … … 225 225 * @return array[] 226 226 */ 227 public function data_is_wp_version_compatible_with_development_versions() {227 public static function data_is_wp_version_compatible_with_development_versions() { 228 228 // For consistent results, remove possible suffixes. 229 229 list( $version ) = explode( '-', wp_get_wp_version() ); -
trunk/tests/phpunit/tests/functions/listFiles.php
r56971 r64440 58 58 * @return array[] 59 59 */ 60 public function data_list_files_should_optionally_include_hidden_files() {60 public static function data_list_files_should_optionally_include_hidden_files() { 61 61 return array( 62 62 '$include_hidden = false and no exclusions' => array( -
trunk/tests/phpunit/tests/functions/maybeSerialize.php
r64110 r64440 57 57 * @return array[] 58 58 */ 59 public function data_is_serialized() {59 public static function data_is_serialized() { 60 60 return array( 61 61 'serialized empty array' => array( … … 125 125 * @return array[] 126 126 */ 127 public function data_is_not_serialized() {127 public static function data_is_not_serialized() { 128 128 return array( 129 129 'an empty array' => array( … … 235 235 * @return array[] 236 236 */ 237 public function data_serialize_deserialize_objects() {237 public static function data_serialize_deserialize_objects() { 238 238 return array( 239 239 'filtered iterator using md5' => array( -
trunk/tests/phpunit/tests/functions/removeQueryArg.php
r57735 r64440 23 23 * @return array[] 24 24 */ 25 public function data_remove_query_arg() {25 public static function data_remove_query_arg() { 26 26 return array( 27 27 array( 'foo', 'edit.php?foo=test1&baz=test1', 'edit.php?baz=test1' ), -
trunk/tests/phpunit/tests/functions/sizeFormat.php
r63461 r64440 19 19 * @return array[] 20 20 */ 21 public function data_size_format() {21 public static function data_size_format() { 22 22 return array( 23 23 // Invalid values. -
trunk/tests/phpunit/tests/functions/wpAdminNotice.php
r64347 r64440 34 34 * @return array[] 35 35 */ 36 public function data_should_output_admin_notice() {36 public static function data_should_output_admin_notice() { 37 37 return array( 38 38 'defaults' => array( -
trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php
r57735 r64440 32 32 * @return array[] 33 33 */ 34 public function data_wp_array_slice_assoc_arrays() {34 public static function data_wp_array_slice_assoc_arrays() { 35 35 return array( 36 36 array( -
trunk/tests/phpunit/tests/functions/wpCacheGetSalted.php
r60697 r64440 75 75 * @return array[] Data provider. 76 76 */ 77 public function data_wp_cache_get_salted_return_false() {77 public static function data_wp_cache_get_salted_return_false() { 78 78 return array( 79 79 array( false ), -
trunk/tests/phpunit/tests/functions/wpCheckAlternateFileNames.php
r56971 r64440 27 27 * @return array[] 28 28 */ 29 public function data_wp_check_alternate_file_names() {29 public static function data_wp_check_alternate_file_names() { 30 30 return array( 31 31 'an existing file' => array( -
trunk/tests/phpunit/tests/functions/wpCheckFiletype.php
r57101 r64440 31 31 * @return array[] 32 32 */ 33 public function data_wp_check_filetype() {33 public static function data_wp_check_filetype() { 34 34 return array( 35 35 '.jpg filename and default allowed' => array( -
trunk/tests/phpunit/tests/functions/wpFilesize.php
r62813 r64440 74 74 * @return array<string, array{ 0: float|int|string }> 75 75 */ 76 public function data_wp_filesize_pre_wp_filesize_filter_negative(): array {76 public static function data_wp_filesize_pre_wp_filesize_filter_negative(): array { 77 77 return array( 78 78 'negative int' => array( -1 ), … … 99 99 * @return array<string, array{ 0: mixed }> 100 100 */ 101 public function data_wp_filesize_filter_invalid_value(): array {101 public static function data_wp_filesize_filter_invalid_value(): array { 102 102 return array( 103 103 'negative' => array( -1 ), -
trunk/tests/phpunit/tests/functions/wpFuzzyNumberMatch.php
r56971 r64440 34 34 * } 35 35 */ 36 public function data_wp_fuzzy_number_match() {36 public static function data_wp_fuzzy_number_match() { 37 37 return array( 38 38 'expected 1 int, actual 1 int' => array( -
trunk/tests/phpunit/tests/functions/wpGetAdminNotice.php
r64347 r64440 30 30 * @return array[] 31 31 */ 32 public function data_should_return_admin_notice() {32 public static function data_should_return_admin_notice() { 33 33 return array( 34 34 'defaults' => array( … … 318 318 * @return array[] 319 319 */ 320 public function data_should_apply_filters() {320 public static function data_should_apply_filters() { 321 321 return array( 322 322 'wp_admin_notice_args' => array( 'hook_name' => 'wp_admin_notice_args' ), -
trunk/tests/phpunit/tests/functions/wpGuessUrl.php
r57735 r64440 28 28 * @return array[] 29 29 */ 30 public function data_wp_guess_url_should_return_site_url() {30 public static function data_wp_guess_url_should_return_site_url() { 31 31 return array( 32 32 'no trailing slash' => array( 'url' => 'wp-admin' ), -
trunk/tests/phpunit/tests/functions/wpHash.php
r59578 r64440 21 21 } 22 22 23 public function data_wp_hash_uses_specified_algorithm() {23 public static function data_wp_hash_uses_specified_algorithm() { 24 24 return array( 25 25 array( 'md5', 32 ), -
trunk/tests/phpunit/tests/functions/wpIsNumericArray.php
r62524 r64440 25 25 * @return array[] 26 26 */ 27 public function data_wp_is_numeric_array() {27 public static function data_wp_is_numeric_array() { 28 28 return array( 29 29 'no index' => array( -
trunk/tests/phpunit/tests/functions/wpListFilter.php
r57735 r64440 28 28 * @return array[] 29 29 */ 30 public function data_wp_list_filter() {30 public static function data_wp_list_filter() { 31 31 return array( 32 32 'string instead of array' => array( -
trunk/tests/phpunit/tests/functions/wpListPluck.php
r57735 r64440 222 222 * @return array[] 223 223 */ 224 public function data_wp_list_pluck() {224 public static function data_wp_list_pluck() { 225 225 return array( 226 226 'arrays' => array( -
trunk/tests/phpunit/tests/functions/wpListSort.php
r57735 r64440 26 26 * @return array[] 27 27 */ 28 public function data_wp_list_sort() {28 public static function data_wp_list_sort() { 29 29 return array( 30 30 'single orderby ascending' => array( … … 356 356 * @return array[] 357 357 */ 358 public function data_wp_list_sort_preserve_keys() {358 public static function data_wp_list_sort_preserve_keys() { 359 359 return array( 360 360 'single orderby ascending' => array( -
trunk/tests/phpunit/tests/functions/wpListUtil.php
r57735 r64440 90 90 * @return array[] 91 91 */ 92 public function data_wp_list_util_pluck() {92 public static function data_wp_list_util_pluck() { 93 93 return array( 94 94 'simple' => array( … … 150 150 * @return array[] 151 151 */ 152 public function data_wp_list_pluck_should_throw_doing_it_wrong_with_invalid_input() {152 public static function data_wp_list_pluck_should_throw_doing_it_wrong_with_invalid_input() { 153 153 return array( 154 154 'int[] 0' => array( array( 0 ) ), … … 247 247 * @return array[] 248 248 */ 249 public function data_wp_list_util_sort_string_arrays() {249 public static function data_wp_list_util_sort_string_arrays() { 250 250 return array( 251 251 'string[], no keys, no ordering' => array( … … 323 323 * @return array[] 324 324 */ 325 public function data_wp_list_util_sort_int_arrays() {325 public static function data_wp_list_util_sort_int_arrays() { 326 326 return array( 327 327 'int[], no keys, no ordering' => array( … … 399 399 * @return array[] 400 400 */ 401 public function data_wp_list_util_sort_arrays_of_arrays() {401 public static function data_wp_list_util_sort_arrays_of_arrays() { 402 402 return array( 403 403 'array[], no keys, no ordering' => array( … … 775 775 * @return array[] 776 776 */ 777 public function data_wp_list_util_sort_object_arrays() {777 public static function data_wp_list_util_sort_object_arrays() { 778 778 return array( 779 779 'object[], no keys, no ordering' => array( … … 1008 1008 * @return array[] 1009 1009 */ 1010 public function data_wp_list_util_sort_non_existent_orderby_fields() {1010 public static function data_wp_list_util_sort_non_existent_orderby_fields() { 1011 1011 return array( 1012 1012 'int[], int keys, $orderby a non-existent field, $order = ASC and $preserve_keys = false' => array( -
trunk/tests/phpunit/tests/functions/wpMysqlWeek.php
r57987 r64440 30 30 * @return array[] 31 31 */ 32 public function data_wp_mysql_week() {32 public static function data_wp_mysql_week() { 33 33 return array( 34 34 array( '1969-12-25', 0, 'WEEK( col_name, 0 )' ), -
trunk/tests/phpunit/tests/functions/wpNonceField.php
r57735 r64440 47 47 * @return array[] 48 48 */ 49 public function data_wp_nonce_field() {49 public static function data_wp_nonce_field() { 50 50 return array( 51 51 'default' => array( -
trunk/tests/phpunit/tests/functions/wpNonceUrl.php
r57735 r64440 40 40 * @return array[] 41 41 */ 42 public function data_should_append_nonce_name_and_value() {42 public static function data_should_append_nonce_name_and_value() { 43 43 return array( 44 44 'http:// and default action/name' => array( … … 127 127 * @return array[] 128 128 */ 129 public function data_should_handle_existing_query_args() {129 public static function data_should_handle_existing_query_args() { 130 130 return array( 131 131 'one query arg' => array( -
trunk/tests/phpunit/tests/functions/wpParseIdList.php
r63366 r64440 40 40 * @return array<string, array{ input_list: mixed[]|string|int, expected: array<non-negative-int> }> 41 41 */ 42 public function data_wp_parse_id_list(): array {42 public static function data_wp_parse_id_list(): array { 43 43 return array( 44 44 'regular' => array( … … 95 95 * @return array<string, array{ input_list: mixed[]|string|int, expected: array<non-negative-int> }> 96 96 */ 97 public function data_unexpected_input(): array {97 public static function data_unexpected_input(): array { 98 98 return array( 99 99 'string with commas' => array( -
trunk/tests/phpunit/tests/functions/wpParseList.php
r63366 r64440 38 38 * @return array<string, array{ input_list: mixed[]|string|int, expected: array<scalar> }> 39 39 */ 40 public function data_wp_parse_list(): array {40 public static function data_wp_parse_list(): array { 41 41 return array( 42 42 'ids only' => array( -
trunk/tests/phpunit/tests/functions/wpParseSlugList.php
r63366 r64440 40 40 * @return array<string, array{ input_list: mixed[]|string|int, expected: array<string> }> 41 41 */ 42 public function data_wp_parse_slug_list(): array {42 public static function data_wp_parse_slug_list(): array { 43 43 return array( 44 44 'regular' => array( … … 108 108 * @return array<string, array{ input_list: mixed[]|string|int, expected: array<string> }> 109 109 */ 110 public function data_unexpected_input(): array {110 public static function data_unexpected_input(): array { 111 111 return array( 112 112 'string with commas' => array( -
trunk/tests/phpunit/tests/functions/wpRefererField.php
r57735 r64440 51 51 * @return array[] 52 52 */ 53 public function data_wp_referer_field_should_respect_display_arg() {53 public static function data_wp_referer_field_should_respect_display_arg() { 54 54 return array( 55 55 'true' => array( true ), -
trunk/tests/phpunit/tests/functions/wpTimezoneChoice.php
r63640 r64440 38 38 * @return array<string, array{ 0: string }> 39 39 */ 40 public function data_wp_timezone_choice(): array {40 public static function data_wp_timezone_choice(): array { 41 41 return array( 42 42 'placeholder option' => array( '<option selected="selected" value="">Select a city</option>' ), … … 71 71 * @return array<string, array{ 0: string }> 72 72 */ 73 public function data_wp_timezone_choice_selected(): array {73 public static function data_wp_timezone_choice_selected(): array { 74 74 return array( 75 75 'city from the list' => array( … … 110 110 * @return array<string, array{ 0: string }> 111 111 */ 112 public function data_wp_timezone_choice_es(): array {112 public static function data_wp_timezone_choice_es(): array { 113 113 return array( 114 114 'placeholder remains in English (no translation override passed)' => array( '<option selected="selected" value="">Select a city</option>' ), -
trunk/tests/phpunit/tests/functions/wpTimezoneChoiceUsortCallback.php
r57278 r64440 21 21 } 22 22 23 public function data_wp_timezone_choice_usort_callback() {23 public static function data_wp_timezone_choice_usort_callback() { 24 24 return array( 25 25 'just GMT+' => array( -
trunk/tests/phpunit/tests/functions/wpTimezoneOverrideOffset.php
r59959 r64440 28 28 * } 29 29 */ 30 public function data_wp_timezone_override_offset() {30 public static function data_wp_timezone_override_offset() { 31 31 return array( 32 32 'no timezone string option set' => array( '', false ), … … 34 34 'UTC option set' => array( 'UTC', 0.0 ), 35 35 'EST option set' => array( 'EST', -5.0 ), 36 'NST option set' => array( 'America/St_Johns', $this->is_timezone_in_dst( 'America/St_Johns' ) ? -2.5 : -3.5 ),36 'NST option set' => array( 'America/St_Johns', self::is_timezone_in_dst( 'America/St_Johns' ) ? -2.5 : -3.5 ), 37 37 ); 38 38 } … … 44 44 * @return bool Whether the timezone is observing DST. 45 45 */ 46 private function is_timezone_in_dst( $timezone_string ) {46 private static function is_timezone_in_dst( $timezone_string ) { 47 47 $timezone = new DateTimeZone( $timezone_string ); 48 48 $timestamp = time(); -
trunk/tests/phpunit/tests/functions/wpToKebabCase.php
r56971 r64440 34 34 * } 35 35 */ 36 public function data_wp_to_kebab_case() {36 public static function data_wp_to_kebab_case() { 37 37 return array( 38 38 array( 'white', 'white' ), -
trunk/tests/phpunit/tests/functions/wpTriggerError.php
r64233 r64440 81 81 * @return array[] 82 82 */ 83 public function data_should_trigger_error() {83 public static function data_should_trigger_error() { 84 84 return array( 85 85 'function name and message are given' => array( -
trunk/tests/phpunit/tests/functions/wpUniqueIdFromValues.php
r60113 r64440 74 74 * @return array[] 75 75 */ 76 public function data_wp_unique_id_from_values() {76 public static function data_wp_unique_id_from_values() { 77 77 return array( 78 78 'string' => array( array( 'value' => 'text' ) ), … … 142 142 * @return array[] 143 143 */ 144 public function data_wp_unique_id_from_values_invalid_data() {144 public static function data_wp_unique_id_from_values_invalid_data() { 145 145 return array( 146 146 'string' => array( 'text' ), -
trunk/tests/phpunit/tests/functions/wpUniquePrefixedId.php
r57057 r64440 39 39 * @return array[] 40 40 */ 41 public function data_should_create_unique_prefixed_ids() {41 public static function data_should_create_unique_prefixed_ids() { 42 42 return array( 43 43 'prefix as empty string' => array( … … 104 104 * @return array[] 105 105 */ 106 public function data_should_raise_notice_and_use_empty_string_prefix_when_nonstring_given() {106 public static function data_should_raise_notice_and_use_empty_string_prefix_when_nonstring_given() { 107 107 $message = 'wp_unique_prefixed_id(): The prefix must be a string. "%s" data type given.'; 108 108 return array( … … 178 178 * @return array[] 179 179 */ 180 public function data_same_prefixes_should_generate_unique_ids() {180 public static function data_same_prefixes_should_generate_unique_ids() { 181 181 return array( 182 182 'prefixes = empty string' => array( -
trunk/tests/phpunit/tests/functions/wpValidateBoolean.php
r56971 r64440 33 33 * } 34 34 */ 35 public function data_wp_validate_boolean() {35 public static function data_wp_validate_boolean() { 36 36 $std = new \stdClass(); 37 37
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)