wordpress-develop/tests/phpunit/tests/functions
Sergey Biryukov 10855438ea Date/Time: Replace all instances of date() with gmdate().
Use of `date()` in core depends on PHP timezone set to UTC and not changed by third party code (which cannot be guaranteed).

`gmdate()` is functionally equivalent, but is not affected by PHP timezone setting: it's always UTC, which is the exact behavior the core needs.

Props nielsdeblaauw, Rarst.
Fixes #46438. See #44491.

git-svn-id: https://develop.svn.wordpress.org/trunk@45424 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-26 00:11:37 +00:00
..
allowedProtocols.php Tests: Fix typo in Tests_Functions_AllowedProtocols::data_example_urls(). 2017-07-24 10:02:52 +00:00
anonymization.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
canonical-charset.php Code is Poetry. 2017-11-30 23:09:33 +00:00
deprecated.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getArchives.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
getWeekstartend.php Add tests for get_weekstartend(). 2016-05-26 15:47:52 +00:00
isNewDay.php Date/Time: Use strict comparison in is_new_day(), add a unit test. 2019-05-22 17:52:22 +00:00
isSerializedString.php Tests: Add missing test cases for is_serialized_string(). 2019-01-08 19:04:51 +00:00
listFiles.php File Editor: Add support for more than one sub-directory level. 2017-10-10 05:33:57 +00:00
listFilter.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
maybeDeclineDate.php Code is Poetry. 2017-11-30 23:09:33 +00:00
numberFormatI18n.php Tests: Add unit tests for number_format_i18n(). 2016-03-01 21:19:20 +00:00
pluginBasename.php Code is Poetry. 2017-11-30 23:09:33 +00:00
referer.php Code is Poetry. 2017-11-30 23:09:33 +00:00
removeQueryArg.php Code is Poetry. 2017-11-30 23:09:33 +00:00
sizeFormat.php Code is Poetry. 2017-11-30 23:09:33 +00:00
underscoreReturn.php Tests: Add tests for the __return*() functions. 2019-01-21 00:32:33 +00:00
wpArraySliceAssoc.php General: Add missing unit tests for wp_array_slice_assoc(). 2019-05-21 14:47:58 +00:00
wpAuthCheck.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpListUtil.php Code is Poetry. 2017-11-30 23:09:33 +00:00
WpValidateBoolean.php Ignore case when checking string 'false' in wp_validate_boolean(). 2014-11-03 15:54:42 +00:00