From 8d77f485c3155946e703f3b162bc5037e836ed66 Mon Sep 17 00:00:00 2001 From: Indigo744 Date: Tue, 1 Sep 2020 21:33:54 +0200 Subject: [PATCH 1/2] strtotime: add failing tests --- tests/datetime/strtotime.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/datetime/strtotime.php diff --git a/tests/datetime/strtotime.php b/tests/datetime/strtotime.php new file mode 100644 index 0000000000..324166a123 --- /dev/null +++ b/tests/datetime/strtotime.php @@ -0,0 +1,15 @@ + Date: Tue, 1 Sep 2020 21:49:00 +0200 Subject: [PATCH 2/2] strtotime: add more failing tests --- tests/datetime/strtotime.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/datetime/strtotime.php b/tests/datetime/strtotime.php index 324166a123..4e1175add2 100644 --- a/tests/datetime/strtotime.php +++ b/tests/datetime/strtotime.php @@ -9,6 +9,8 @@ function test() { echo date("Y-m-d H:i", strtotime("+1 week 2 days 4 hours 2 seconds")) . PHP_EOL; echo date("Y-m-d H:i", strtotime("next Thursday")) . PHP_EOL; echo date("Y-m-d H:i", strtotime("last Monday")) . PHP_EOL; + echo date("Y-m-d H:i", strtotime("2020-07-14")) . PHP_EOL; + echo date("Y-m-d H:i", strtotime("2020-01")) . PHP_EOL; echo date("Y-m-d H:i", strtotime("first monday of 2020-01")) . PHP_EOL; }