wordpress-develop/tests/phpunit/tests/functions
Sergey Biryukov d1e22dbad8 Tests: Bring some consistency to serialization tests.
There were two sets of tests for `is_serialized()`:
* One in the `functions.php` file, based on the same file name in core.
* One in a separate class in the `functions` directory.

To avoid confusion and make it easier to decide where new tests should go in the future, the existing tests are now combined in the latter location.

Includes:
* Moving `is_serialized()` and `maybe_serialize()` tests into their own classes.
* Using named data providers to make test output more descriptive.
* Combining test cases and removing duplicates.

Follow-up to [278/tests], [279/tests], [328/tests], [32631], [45754], [47452], [49382], [53886], [53889].

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@53890 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-13 12:09:41 +00:00
..
addMagicQuotes.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
allowedProtocols.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
anonymization.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
canonicalCharset.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
cleanDirsizeCache.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
cleanupHeaderComment.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
deprecated.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
doEnclose.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
getStatusHeaderDesc.php Tests: Correct the order of expected and actual values in get_status_header_desc() tests. 2022-02-19 12:36:04 +00:00
getWeekstartend.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isNewDay.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isPhpVersionCompatible.php Code Modernization: Replace phpversion() function calls with PHP_VERSION constant. 2022-05-20 17:36:23 +00:00
isSerialized.php Tests: Bring some consistency to serialization tests. 2022-08-13 12:09:41 +00:00
isSerializedString.php Tests: Bring some consistency to serialization tests. 2022-08-13 12:09:41 +00:00
isWpVersionCompatible.php Tests, Build Tools: Improve version compatibility tests. 2022-04-21 01:00:24 +00:00
listFiles.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
maybeSerialize.php Tests: Bring some consistency to serialization tests. 2022-08-13 12:09:41 +00:00
numberFormatI18n.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
pluginBasename.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
referer.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
removeQueryArg.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
sizeFormat.php Formatting: Add support for formatting sizes as PB, EB, ZB, and YB. 2022-03-18 20:46:17 +00:00
underscoreReturn.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wp.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpArrayGet.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpArraySet.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpArraySliceAssoc.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpAuthCheck.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpFilterObjectList.php Coding Standards: Add missing visibility keywords for wp_filter_object_list() and wp_list_pluck() tests. 2021-08-26 16:50:02 +00:00
wpFuzzyNumberMatch.php Tests: Add unit tests for wp_fuzzy_number_match(). 2022-05-01 16:11:24 +00:00
wpGetArchives.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpGetMimeTypes.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
wpIsNumericArray.php Tests: Remove the formatting group from wp_is_numeric_array() tests. 2021-11-08 17:07:49 +00:00
wpListFilter.php Tests: Move wp_list_filter() tests to their own file. 2021-08-26 16:20:57 +00:00
wpListPluck.php Coding Standards: Add missing visibility keywords for wp_filter_object_list() and wp_list_pluck() tests. 2021-08-26 16:50:02 +00:00
wpListSort.php Tests: Move wp_list_sort() tests to their own file. 2021-08-26 16:29:37 +00:00
wpListUtil.php Tests: Move wp_list_sort() tests to their own file. 2021-08-26 16:29:37 +00:00
wpNonceAys.php Tests: Add unit tests for the wp_nonce_ays() function. 2021-08-13 14:00:05 +00:00
wpRemoteFopen.php Build/Test Tools: Replace assertInternalType() usage in unit tests. 2021-07-05 17:21:53 +00:00
wpToKebabCase.php Docs: Use third-person singular verbs in some test descriptions in phpunit/tests/functions/. 2022-02-21 14:50:07 +00:00
wpValidateBoolean.php Coding Standards: Remove extra alignment level in the data provider for wp_validate_boolean() tests. 2022-05-01 16:22:58 +00:00
xmlrpc.php Tests: Add unit tests for some XML-RPC functions: 2022-05-02 00:11:35 +00:00