summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2017-03-02 11:27:44 +0000
committerAnatol Belski <ab@php.net>2017-03-02 22:13:05 +0100
commit387ea8b983373c2bb4a28ac1336a687ee57fd4d8 (patch)
tree6bb66dcd3d44a6ffebe04e127103612318a03740
parentb6616f7e9cac9f8f99641869c3e08bb73d10068c (diff)
downloadphp-git-387ea8b983373c2bb4a28ac1336a687ee57fd4d8.tar.gz
Make sure we anchor this test to February
(cherry picked from commit 61e9b7354ff3b99613a395ad148acf2bdd293af5)
-rw-r--r--ext/date/tests/bug73858.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/tests/bug73858.phpt b/ext/date/tests/bug73858.phpt
index 5b619b1d47..300b366749 100644
--- a/ext/date/tests/bug73858.phpt
+++ b/ext/date/tests/bug73858.phpt
@@ -7,8 +7,8 @@ In the "verbose setup method" I'm trying setup the DateTime object myself
to see if it's the format string which is parsed in correctly or if it's the DateTime
object which is breaking stuff. From the testing it appears DateTime is broken somehow.
*/
-$ss = 'first day of March midnight';
-$es = 'first day of April midnight - 1 second';
+$ss = 'february first day of last month midnight';
+$es = 'february first day of this month midnight - 1 second';
$s = new DateTime($ss);
$e = new DateTime($es);
@@ -50,7 +50,7 @@ effect on the results of the diff. By modifying the datetime with ->modify every
it just means you have to be careful of how we work with DateTimes .
*/
$s = new DateTime($ss);
-$e = new DateTime('first day of April midnight');
+$e = new DateTime('february first day of this month midnight');
$e->modify('- 1 second');
var_dump($e->diff($s)->days); // 30 ... and should be 30
?>