summaryrefslogtreecommitdiff
path: root/ext/date/tests/date_time_set_error.phpt
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2016-10-05 11:24:15 -0400
committerDerick Rethans <github@derickrethans.nl>2016-10-05 15:03:06 -0400
commit55626549d81d0feadb1d160be78fcf2b898a48cc (patch)
treea00c6239804f2ad68ccc3470e63e83eb18f7897f /ext/date/tests/date_time_set_error.phpt
parentd5b77d66626b138a83b6c0d16f746893fefa29ee (diff)
downloadphp-git-microseconds.tar.gz
Improve support for microseconds with Date/Timemicroseconds
It fixes several bugs: - Fixed bug #45554 (Inconsistent behavior of the u format char). - Fixed bug #48225 (DateTime parser doesn't set microseconds for "now"). - Fixed bug #52514 (microseconds are missing in DateTime class). - Fixed bug #52519 (microseconds in DateInterval are missing). - Fixed bug #68506 (General DateTime improvments needed for microseconds to become useful). - Fixed bug #73109 (timelib_meridian doesn't parse dots correctly). - Fixed bug #73247 (DateTime constructor does not initialise microseconds property). It also updates timelib to 2016.04, and updates a data mapping file, which causes changes to the volatile abbreviations tests.
Diffstat (limited to 'ext/date/tests/date_time_set_error.phpt')
-rw-r--r--ext/date/tests/date_time_set_error.phpt5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/date/tests/date_time_set_error.phpt b/ext/date/tests/date_time_set_error.phpt
index 8e5c855bcd..5c5ddaf4d2 100644
--- a/ext/date/tests/date_time_set_error.phpt
+++ b/ext/date/tests/date_time_set_error.phpt
@@ -24,8 +24,9 @@ var_dump( date_time_set($datetime, $hour) );
echo "\n-- Testing date_time_set() function with more than expected no. of arguments --\n";
$min = 15;
$sec = 30;
+$microseconds = 123123;
$extra_arg = 10;
-var_dump( date_time_set($datetime, $hour, $min, $sec, $extra_arg) );
+var_dump( date_time_set($datetime, $hour, $min, $sec, $microseconds, $extra_arg) );
echo "\n-- Testing date_time_set() function with an invalid values for \$object argument --\n";
$invalid_obj = new stdClass();
@@ -54,7 +55,7 @@ bool(false)
-- Testing date_time_set() function with more than expected no. of arguments --
-Warning: date_time_set() expects at most 4 parameters, 5 given in %s on line %d
+Warning: date_time_set() expects at most 5 parameters, 6 given in %s on line %d
bool(false)
-- Testing date_time_set() function with an invalid values for $object argument --