From 5f024dcc1632cdf27c557b9cfdc23f7047cd321a Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 27 Jun 2006 15:08:16 +0000 Subject: [PATCH] more date() tests --- ext/date/tests/003.phpt | 47 ++++++++++++++++++++++++++ ext/date/tests/004.phpt | 73 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 ext/date/tests/003.phpt create mode 100644 ext/date/tests/004.phpt diff --git a/ext/date/tests/003.phpt b/ext/date/tests/003.phpt new file mode 100644 index 00000000000..621a87b3412 --- /dev/null +++ b/ext/date/tests/003.phpt @@ -0,0 +1,47 @@ +--TEST-- +date suffixes test +--INI-- +date.timezone=UTC +--FILE-- + +--EXPECTF-- +string(4) "31st" +string(3) "1st" +string(3) "2nd" +string(3) "3rd" +string(3) "4th" +string(3) "5th" +string(3) "6th" +string(3) "7th" +string(3) "8th" +string(3) "9th" +string(4) "10th" +string(4) "11th" +string(4) "12th" +string(4) "13th" +string(4) "14th" +string(4) "15th" +string(4) "16th" +string(4) "17th" +string(4) "18th" +string(4) "19th" +string(4) "20th" +string(4) "21st" +string(4) "22nd" +string(4) "23rd" +string(4) "24th" +string(4) "25th" +string(4) "26th" +string(4) "27th" +string(4) "28th" +string(4) "29th" +string(4) "30th" +string(4) "31st" +Done diff --git a/ext/date/tests/004.phpt b/ext/date/tests/004.phpt new file mode 100644 index 00000000000..33e1fc79107 --- /dev/null +++ b/ext/date/tests/004.phpt @@ -0,0 +1,73 @@ +--TEST-- +date() format params +--FILE-- + +--EXPECTF-- +string(1) "2" +string(3) "177" +string(1) "6" +string(2) "30" +string(1) "0" +string(2) "am" +string(3) "041" +string(2) "12" +string(1) "0" +string(1) "0" +string(10) "1151366400" +string(1) "2" +string(3) "177" +string(1) "6" +string(2) "30" +string(1) "0" +string(2) "am" +string(3) "041" +string(1) "3" +string(1) "3" +string(5) "10800" +string(10) "1151366400" +string(1) "1" +string(3) "176" +string(1) "6" +string(2) "30" +string(1) "0" +string(2) "pm" +string(3) "041" +string(1) "7" +string(2) "19" +string(6) "-18000" +string(10) "1151366400" +string(1) "2" +string(3) "177" +string(1) "6" +string(2) "30" +string(1) "0" +string(2) "am" +string(3) "041" +string(1) "1" +string(1) "1" +string(4) "3600" +string(10) "1151366400" +Done