wordpress-develop/tests/phpunit/tests/functions
Sergey Biryukov 5a49274a92 Code Modernization: Replace phpversion() function calls with PHP_VERSION constant.
`phpversion()` return value and `PHP_VERSION` constant value are identical, but the latter is several times faster because it is a direct constant value lookup compared to a function call.

Props ayeshrajans, jrf, mukesh27, costdev, hellofromTonya, SergeyBiryukov.
Fixes #55680.

git-svn-id: https://develop.svn.wordpress.org/trunk@53426 602fd350-edb4-49c9-b593-d223f7449a82
2022-05-20 17:36:23 +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
isSerializedString.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +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
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