1--TEST--
2Test DateTimeZone::listIdentifiers function : basic functionality
3--FILE--
4<?php
5echo "*** Testing DateTimeZone::listIdentifiers() : basic functionality ***\n";
6
7//Set the default time zone
8date_default_timezone_set("GMT");
9
10$zones = DateTimeZone::listIdentifiers();
11echo "Check return tpe is ARRAY\n";
12var_dump(is_array($zones));
13
14echo "Check array contains some common timezones\n";
15var_dump(in_array("Europe/London", $zones));
16var_dump(in_array("America/New_York", $zones));
17var_dump(in_array("UTC", $zones));
18
19?>
20--EXPECT--
21*** Testing DateTimeZone::listIdentifiers() : basic functionality ***
22Check return tpe is ARRAY
23bool(true)
24Check array contains some common timezones
25bool(true)
26bool(true)
27bool(true)
28
29