From 70b782bc9ab0350efcbf5e27cf5692771ae3ce68 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 6 Dec 2011 05:59:24 +0000 Subject: [PATCH] - Fixed test case for #54851. - Make test case for #32555 the same for all branches. --- ext/date/tests/bug32555.phpt | 1 - ext/date/tests/bug54851.phpt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/date/tests/bug32555.phpt b/ext/date/tests/bug32555.phpt index 31fafbfd48..fca34ffa19 100644 --- a/ext/date/tests/bug32555.phpt +++ b/ext/date/tests/bug32555.phpt @@ -8,7 +8,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') die('skip strftime uses system TZ'); date.timezone=US/Eastern --FILE-- format("D"). ' 0 0 0'); +$date2 = DateTime::createFromFormat("D H i s", $date->format("D"). ' 0 00 00'); echo $date->format("r"), "\n"; echo $date2->format("r"), "\n"; var_dump($date->format("D") == $date2->format("D")); @@ -20,7 +20,7 @@ var_dump($datePre->format("Y-m-d") == $datePost->format("Y-m-d")); // Verify that our implementation is the same as for the constructor and // strtotime $date1 = new DateTime("Tuesday"); -$date2 = DateTime::createFromFormat("D H i s", "Tuesday 0 0 0"); +$date2 = DateTime::createFromFormat("D H i s", "Tuesday 0 00 00"); echo $date1->format('r'), "\n"; echo $date2->format('r'), "\n"; var_dump($date1->format('D') == $date2->format('D')); -- 2.40.0