Annotation of embedaddon/php/ext/date/tests/011.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: timezone_name_from_abbr() tests
! 3: --FILE--
! 4: <?php
! 5: date_default_timezone_set('UTC');
! 6:
! 7: var_dump(timezone_name_from_abbr());
! 8: var_dump(timezone_name_from_abbr("CET"));
! 9: var_dump(timezone_name_from_abbr("AEST"));
! 10: var_dump(timezone_name_from_abbr("", 3600));
! 11: var_dump(timezone_name_from_abbr("", 3600, 0));
! 12:
! 13: echo "Done\n";
! 14: ?>
! 15: --EXPECTF--
! 16: Warning: timezone_name_from_abbr() expects at least 1 parameter, 0 given in %s on line %d
! 17: bool(false)
! 18: string(13) "Europe/Berlin"
! 19: bool(false)
! 20: bool(false)
! 21: string(12) "Europe/Paris"
! 22: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>