1--TEST--
2Test DateTimeZone::listIdentifiers function : basic functionality
3--FILE--
4<?php
5/* Prototype  : array DateTimeZone::listIdentifiers ( void )
6 * Description: Returns numerically index array with all timezone identifiers
7 * Source code: ext/date/php_date.c
8 * Alias to functions: timezone_identifiers_list
9 */
10
11echo "*** Testing DateTimeZone::listIdentifiers() : basic functionality ***\n";
12
13//Set the default time zone
14date_default_timezone_set("GMT");
15
16$zones = DateTimeZone::listIdentifiers();
17echo "Check return tpe is ARRAY\n";
18var_dump(is_array($zones));
19
20echo "Check array contains some common timezones\n";
21var_dump(in_array("Europe/London", $zones));
22var_dump(in_array("America/New_York", $zones));
23var_dump(in_array("UTC", $zones));
24
25?>
26===DONE===
27--EXPECT--
28*** Testing DateTimeZone::listIdentifiers() : basic functionality ***
29Check return tpe is ARRAY
30bool(true)
31Check array contains some common timezones
32bool(true)
33bool(true)
34bool(true)
35===DONE===
36