com php-src: Revert "Make sure we anchor this test to February": ext/date/tests/bug73858.phpt
| From: | Joe Watkins | Date: | Fri, 03 Mar 2017 10:09:56 +0000 |
| Subject: | com php-src: Revert "Make sure we anchor this test to February": ext/date/tests/bug73858.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97234@lists.php.net to get a copy of this message | ||
Commit: 8f00832a12f6f4bafea016afd58b477ba63a2985
Author: Joe Watkins <krakjoe@php.net> Fri, 3 Mar 2017 10:09:56 +0000
Parents: d03d7ee6b8b67bafc4bd7d399f450db138d9acae
Branches: PHP-7.1.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8f00832a12f6f4bafea016afd58b477ba63a2985
Log:
Revert "Make sure we anchor this test to February"
This reverts commit 61e9b7354ff3b99613a395ad148acf2bdd293af5.
Changed paths:
M ext/date/tests/bug73858.phpt
Diff:
diff --git a/ext/date/tests/bug73858.phpt b/ext/date/tests/bug73858.phpt
index 72474d3..5b619b1 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 last month midnight';
-$es = 'first day of this month midnight - 1 second';
+$ss = 'first day of March midnight';
+$es = 'first day of April 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 this month midnight');
+$e = new DateTime('first day of April midnight');
$e->modify('- 1 second');
var_dump($e->diff($s)->days); // 30 ... and should be 30
?>