Annotation of embedaddon/php/ext/date/tests/timezones.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: setting bogus timezones
! 3: --FILE--
! 4: <?php
! 5:
! 6: //bogus
! 7: var_dump(date_default_timezone_set('AAA'));
! 8: var_dump(date_default_timezone_set('ZZZ'));
! 9:
! 10:
! 11: //now the first and the last one
! 12: var_dump(date_default_timezone_set("Africa/Abidjan"));
! 13: var_dump(date_default_timezone_set("Zulu"));
! 14:
! 15: echo "done\n";
! 16:
! 17: ?>
! 18: --EXPECTF--
! 19: Notice: date_default_timezone_set(): Timezone ID 'AAA' is invalid in %stimezones.php on line 4
! 20: bool(false)
! 21:
! 22: Notice: date_default_timezone_set(): Timezone ID 'ZZZ' is invalid in %stimezones.php on line 5
! 23: bool(false)
! 24: bool(true)
! 25: bool(true)
! 26: done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>