From 5737b1e9258eb65f3376afe08eaab6133f701f44 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 1 Sep 2006 23:31:52 +0000 Subject: [PATCH] and add a test --- ext/date/tests/timezones.phpt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ext/date/tests/timezones.phpt diff --git a/ext/date/tests/timezones.phpt b/ext/date/tests/timezones.phpt new file mode 100644 index 0000000000..c7e470ab8c --- /dev/null +++ b/ext/date/tests/timezones.phpt @@ -0,0 +1,26 @@ +--TEST-- +setting bogus timezones +--FILE-- + +--EXPECTF-- +Notice: date_default_timezone_set(): Timezone ID 'AAA' is invalid in %stimezones.php on line 4 +bool(false) + +Notice: date_default_timezone_set(): Timezone ID 'ZZZ' is invalid in %stimezones.php on line 5 +bool(false) +bool(true) +bool(true) +done -- 2.50.1