From: Nuno Lopes Date: Fri, 1 Sep 2006 23:31:52 +0000 (+0000) Subject: and add a test X-Git-Tag: php-5.2.0RC4~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5737b1e9258eb65f3376afe08eaab6133f701f44;p=php and add a test --- 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