1--TEST--
2Test timezone_identifiers_list() function : basic functionality
3--FILE--
4<?php
5/* Prototype  : array timezone_identifiers_list  ( void )
6 * Description: Returns numerically index array with all timezone identifiers
7 * Source code: ext/date/php_date.c
8 * Alias to functions:
9 */
10
11echo "*** Testing timezone_identifiers_list() : basic functionality ***\n";
12
13//Set the default time zone
14date_default_timezone_set("GMT");
15
16$zones = timezone_identifiers_list();
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--EXPECTF--
28*** Testing timezone_identifiers_list() : basic functionality ***
29Check return tpe is ARRAY
30bool(true)
31Check array contains some common timezones
32bool(true)
33bool(true)
34bool(true)
35===DONE===
36