Annotation of embedaddon/php/ext/date/tests/timezones-list.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: timezone_identifiers_list()
! 3: --FILE--
! 4: <?php
! 5: $a = timezone_identifiers_list();
! 6: $b = timezone_identifiers_list( DateTimezone::AMERICA );
! 7: $c = timezone_identifiers_list( DateTimezone::ALL_WITH_BC );
! 8: $d = timezone_identifiers_list( DateTimezone::EUROPE | DateTimezone::UTC );
! 9:
! 10: echo in_array( "Europe/Oslo", $a ) ? "found" : "notfound", "\n";
! 11: echo in_array( "Europe/Oslo", $b ) ? "found" : "notfound", "\n";
! 12: echo in_array( "Europe/Oslo", $c ) ? "found" : "notfound", "\n";
! 13: echo in_array( "Europe/Oslo", $d ) ? "found" : "notfound", "\n\n";
! 14:
! 15: echo in_array( "America/New_York", $a ) ? "found" : "notfound", "\n";
! 16: echo in_array( "America/New_York", $b ) ? "found" : "notfound", "\n";
! 17: echo in_array( "America/New_York", $c ) ? "found" : "notfound", "\n";
! 18: echo in_array( "America/New_York", $d ) ? "found" : "notfound", "\n\n";
! 19:
! 20: echo in_array( "UTC", $a ) ? "found" : "notfound", "\n";
! 21: echo in_array( "UTC", $b ) ? "found" : "notfound", "\n";
! 22: echo in_array( "UTC", $c ) ? "found" : "notfound", "\n";
! 23: echo in_array( "UTC", $d ) ? "found" : "notfound", "\n\n";
! 24:
! 25: echo in_array( "US/Eastern", $a ) ? "found" : "notfound", "\n";
! 26: echo in_array( "US/Eastern", $b ) ? "found" : "notfound", "\n";
! 27: echo in_array( "US/Eastern", $c ) ? "found" : "notfound", "\n";
! 28: echo in_array( "US/Eastern", $d ) ? "found" : "notfound", "\n\n";
! 29: ?>
! 30: --EXPECT--
! 31: found
! 32: notfound
! 33: found
! 34: found
! 35:
! 36: found
! 37: found
! 38: found
! 39: notfound
! 40:
! 41: found
! 42: notfound
! 43: found
! 44: found
! 45:
! 46: notfound
! 47: notfound
! 48: found
! 49: notfound
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>