Changeset 57735
- Timestamp:
- 02/28/2024 09:44:40 AM (9 months ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/maybeHashHexColor.php
r57733 r57735 8 8 * @covers ::maybe_hash_hex_color 9 9 */ 10 class Tests_Formatting_ maybeHashHexColor extends WP_UnitTestCase {10 class Tests_Formatting_MaybeHashHexColor extends WP_UnitTestCase { 11 11 12 12 /** 13 13 * @ticket 60272 14 14 * 15 * @dataProvider date_sanitize_hex_color_no_hash 15 * @dataProvider data_sanitize_hex_color_no_hash 16 * 17 * @param string $color Color. 18 * @param string $expected Expected. 16 19 */ 17 20 public function test_maybe_hash_hex_color( $color, $expected ) { … … 20 23 21 24 /** 22 * @return array 25 * Data provider for test_maybe_hash_hex_color(). 26 * 27 * @return array[] 23 28 */ 24 public function dat e_sanitize_hex_color_no_hash() {29 public function data_sanitize_hex_color_no_hash() { 25 30 return array( 26 31 '$maybe_alpha = false, 3 digit' => array( -
trunk/tests/phpunit/tests/formatting/redirect.php
r55562 r57735 204 204 205 205 /** 206 * Data provider for test_wp_validate_redirect_relative_url .206 * Data provider for test_wp_validate_redirect_relative_url(). 207 207 * 208 208 * @return array[] { -
trunk/tests/phpunit/tests/formatting/sanitizeHexColor.php
r57733 r57735 8 8 * @covers ::sanitize_hex_color 9 9 */ 10 class Tests_Formatting_ sanitizeHexColor extends WP_UnitTestCase {10 class Tests_Formatting_SanitizeHexColor extends WP_UnitTestCase { 11 11 12 12 /** 13 13 * @ticket 60270 14 14 * 15 * @dataProvider date_sanitize_hex_color 15 * @dataProvider data_sanitize_hex_color 16 * 17 * @param string $color Color. 18 * @param string $expected Expected. 16 19 */ 17 20 public function test_sanitize_hex_color( $color, $expected ) { … … 20 23 21 24 /** 22 * @return array 25 * Data provider for test_sanitize_hex_color(). 26 * 27 * @return array[] 23 28 */ 24 public function dat e_sanitize_hex_color() {29 public function data_sanitize_hex_color() { 25 30 return array( 26 31 '$maybe_alpha = false, 3 digit' => array( -
trunk/tests/phpunit/tests/formatting/sanitizeHexColorNoHash.php
r57733 r57735 8 8 * @covers ::sanitize_hex_color_no_hash 9 9 */ 10 class Tests_Formatting_ sanitizeHexColorNoHash extends WP_UnitTestCase {10 class Tests_Formatting_SanitizeHexColorNoHash extends WP_UnitTestCase { 11 11 12 12 /** 13 13 * @ticket 60271 14 14 * 15 * @dataProvider date_sanitize_hex_color_no_hash 15 * @dataProvider data_sanitize_hex_color_no_hash 16 * 17 * @param string $color Color. 18 * @param string $expected Expected. 16 19 */ 17 20 public function test_sanitize_hex_color_no_hash( $color, $expected ) { … … 20 23 21 24 /** 22 * @return array 25 * Data provider for data_sanitize_hex_color_no_hash(). 26 * 27 * @return array[] 23 28 */ 24 public function dat e_sanitize_hex_color_no_hash() {29 public function data_sanitize_hex_color_no_hash() { 25 30 return array( 26 31 '$maybe_alpha = false, 3 digit' => array( -
trunk/tests/phpunit/tests/formatting/wpStripAllTags.php
r56536 r57735 87 87 88 88 /** 89 * Data provider for test_wp_strip_all_tags_should_cast_scalar_values_to_string() /89 * Data provider for test_wp_strip_all_tags_should_cast_scalar_values_to_string(). 90 90 * 91 91 * @return array[] -
trunk/tests/phpunit/tests/functions/absint.php
r57724 r57735 4 4 * Tests for the absint function. 5 5 * 6 * @group Functions6 * @group functions 7 7 * 8 8 * @covers ::absint … … 25 25 * Returns an array of test data for the `data_absint` method. 26 26 * 27 * @return array An array of test data.27 * @return array[] An array of test data. 28 28 */ 29 29 public function data_absint() { -
trunk/tests/phpunit/tests/functions/addMagicQuotes.php
r56971 r57735 22 22 23 23 /** 24 * Data provider for test_add_magic_quotes .24 * Data provider for test_add_magic_quotes(). 25 25 * 26 26 * @return array[] Test parameters { -
trunk/tests/phpunit/tests/functions/allowedProtocols.php
r56971 r57735 37 37 38 38 /** 39 * Data provider. 40 * 39 41 * @link http://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml 42 * 43 * @return array[] 40 44 */ 41 45 public function data_example_urls() { -
trunk/tests/phpunit/tests/functions/getStatusHeaderDesc.php
r56971 r57735 25 25 * Data provider for test_get_status_header_desc(). 26 26 * 27 * @return array 27 * @return array[] 28 28 */ 29 29 public function data_get_status_header_desc() { -
trunk/tests/phpunit/tests/functions/isNewDay.php
r56971 r57735 28 28 } 29 29 30 /** 31 * Data provider. 32 * 33 * @return array[] 34 */ 30 35 public function data_is_new_date() { 31 36 return array( -
trunk/tests/phpunit/tests/functions/isPhpVersionCompatible.php
r56971 r57735 26 26 * Data provider. 27 27 * 28 * @return array 28 * @return array[] 29 29 */ 30 30 public function data_is_php_version_compatible() { -
trunk/tests/phpunit/tests/functions/isSerialized.php
r57278 r57735 26 26 * Data provider for `test_is_serialized()`. 27 27 * 28 * @return array 28 * @return array[] 29 29 */ 30 30 public function data_is_serialized() { … … 98 98 * Data provider for `test_is_serialized()`. 99 99 * 100 * @return array 100 * @return array[] 101 101 */ 102 102 public function data_is_not_serialized() { … … 193 193 } 194 194 195 /** 196 * Data provider. 197 * 198 * @return array[] 199 */ 195 200 public function data_is_serialized_should_return_true_for_large_floats() { 196 201 return array( -
trunk/tests/phpunit/tests/functions/isSerializedString.php
r56971 r57735 25 25 * Data provider for `test_is_serialized_string()`. 26 26 * 27 * @return array 27 * @return array[] 28 28 */ 29 29 public function data_is_serialized_string() { -
trunk/tests/phpunit/tests/functions/isWpVersionCompatible.php
r57707 r57735 26 26 * Data provider. 27 27 * 28 * @return array 28 * @return array[] 29 29 */ 30 30 public function data_is_wp_version_compatible() { … … 126 126 * Data provider. 127 127 * 128 * @return array 128 * @return array[] 129 129 */ 130 130 public function data_is_wp_version_compatible_should_gracefully_handle_trailing_point_zero_version_numbers() { … … 205 205 * Data provider. 206 206 * 207 * @return array 207 * @return array[] 208 208 */ 209 209 public function data_is_wp_version_compatible_with_development_versions() { -
trunk/tests/phpunit/tests/functions/maybeSerialize.php
r56971 r57735 54 54 * Data provider for `test_maybe_unserialize()`. 55 55 * 56 * @return array 56 * @return array[] 57 57 */ 58 58 public function data_is_serialized() { … … 122 122 * Data provider for `test_maybe_serialize()`. 123 123 * 124 * @return array 124 * @return array[] 125 125 */ 126 126 public function data_is_not_serialized() { … … 230 230 * Data provider for test_deserialize_request_utility_filtered_iterator_objects(). 231 231 * 232 * @return array 232 * @return array[] 233 233 */ 234 234 public function data_serialize_deserialize_objects() { -
trunk/tests/phpunit/tests/functions/mceSetDirection.php
r57733 r57735 8 8 * @covers ::_mce_set_direction 9 9 */ 10 class Tests_Functions_ mceSetDirection extends WP_UnitTestCase {10 class Tests_Functions_MceSetDirection extends WP_UnitTestCase { 11 11 12 12 /** … … 31 31 32 32 $actual = _mce_set_direction( $mce_init ); 33 $this->assertSameSets( $mce_init, $actual );33 $this->assertSameSets( $mce_init, $actual, 'An unexpected LTR result was returned.' ); 34 34 35 35 $orig_text_dir = $wp_locale->text_direction; … … 38 38 $wp_locale->text_direction = $orig_text_dir; 39 39 40 $this->assertSameSets( $expected, $actual );40 $this->assertSameSets( $expected, $actual, 'An unexpected RTL result was returned.' ); 41 41 } 42 42 } -
trunk/tests/phpunit/tests/functions/removeQueryArg.php
r56971 r57735 18 18 } 19 19 20 /** 21 * Data provider. 22 * 23 * @return array[] 24 */ 20 25 public function data_remove_query_arg() { 21 26 return array( -
trunk/tests/phpunit/tests/functions/sizeFormat.php
r56971 r57735 14 14 class Tests_Functions_SizeFormat extends WP_UnitTestCase { 15 15 16 /** 17 * Data provider. 18 * 19 * @return array[] 20 */ 16 21 public function data_size_format() { 17 22 return array( -
trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php
r56971 r57735 30 30 * Data provider for wp_array_slice_assoc(). 31 31 * 32 * @return array 32 * @return array[] 33 33 */ 34 34 public function data_wp_array_slice_assoc_arrays() { -
trunk/tests/phpunit/tests/functions/wpGuessUrl.php
r56971 r57735 26 26 * Data provider. 27 27 * 28 * @return array 28 * @return array[] 29 29 */ 30 30 public function data_wp_guess_url_should_return_site_url() { -
trunk/tests/phpunit/tests/functions/wpListFilter.php
r56971 r57735 23 23 } 24 24 25 /** 26 * Data provider. 27 * 28 * @return array[] 29 */ 25 30 public function data_wp_list_filter() { 26 31 return array( -
trunk/tests/phpunit/tests/functions/wpListPluck.php
r57732 r57735 217 217 } 218 218 219 /** 220 * Data provider. 221 * 222 * @return array[] 223 */ 219 224 public function data_wp_list_pluck() { 220 225 return array( -
trunk/tests/phpunit/tests/functions/wpListSort.php
r56971 r57735 21 21 } 22 22 23 /** 24 * Data provider. 25 * 26 * @return array[] 27 */ 23 28 public function data_wp_list_sort() { 24 29 return array( … … 346 351 } 347 352 353 /** 354 * Data provider. 355 * 356 * @return array[] 357 */ 348 358 public function data_wp_list_sort_preserve_keys() { 349 359 return array( -
trunk/tests/phpunit/tests/functions/wpListUtil.php
r56971 r57735 148 148 * Data provider that provides invalid input arrays. 149 149 * 150 * @return array 150 * @return array[] 151 151 */ 152 152 public function data_wp_list_pluck_should_throw_doing_it_wrong_with_invalid_input() { -
trunk/tests/phpunit/tests/functions/wpNonceField.php
r56971 r57735 45 45 * Data provider. 46 46 * 47 * @return array 47 * @return array[] 48 48 */ 49 49 public function data_wp_nonce_field() { -
trunk/tests/phpunit/tests/functions/wpNonceUrl.php
r56971 r57735 38 38 * Data provider for test_should_append_nonce_name_and_value(). 39 39 * 40 * @return array 40 * @return array[] 41 41 */ 42 42 public function data_should_append_nonce_name_and_value() { … … 125 125 * Data provider for test_should_handle_existing_query_args(). 126 126 * 127 * @return array 127 * @return array[] 128 128 */ 129 129 public function data_should_handle_existing_query_args() { -
trunk/tests/phpunit/tests/functions/wpParseList.php
r57284 r57735 18 18 } 19 19 20 /** 21 * Data provider. 22 * 23 * @return array[] 24 */ 20 25 public function data_wp_parse_list() { 21 26 return array( -
trunk/tests/phpunit/tests/functions/wpParseSlugList.php
r57733 r57735 8 8 * @covers ::wp_parse_slug_list 9 9 */ 10 class Tests_Functions_ wpParseSlugList extends WP_UnitTestCase {10 class Tests_Functions_WpParseSlugList extends WP_UnitTestCase { 11 11 12 12 /** -
trunk/tests/phpunit/tests/functions/wpRefererField.php
r56971 r57735 49 49 * Data provider for test_wp_referer_field_should_respect_display_arg(). 50 50 * 51 * @return array 51 * @return array[] 52 52 */ 53 53 public function data_wp_referer_field_should_respect_display_arg() { -
trunk/tests/phpunit/tests/functions/wpTriggerError.php
r56971 r57735 79 79 * Data provider. 80 80 * 81 * @return array 81 * @return array[] 82 82 */ 83 83 public function data_should_trigger_error() {
Note: See TracChangeset
for help on using the changeset viewer.