1--TEST--
2IntlTimeZone::createTimeZoneIDEnumeration(): variant without region
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10$enum = IntlTimeZone::createTimeZoneIDEnumeration(
11	IntlTimeZone::TYPE_ANY);
12$countAny = count(iterator_to_array($enum));
13$enum = IntlTimeZone::createTimeZoneIDEnumeration(
14	IntlTimeZone::TYPE_CANONICAL);
15$countCanonical = count(iterator_to_array($enum));
16$enum = IntlTimeZone::createTimeZoneIDEnumeration(
17	IntlTimeZone::TYPE_CANONICAL_LOCATION);
18$countCanonicalLocation = count(iterator_to_array($enum));
19
20var_dump($countAny > $countCanonical);
21var_dump($countCanonical > $countCanonicalLocation);
22
23$enum = IntlTimeZone::createTimeZoneIDEnumeration(
24	IntlTimeZone::TYPE_ANY, null, null);
25$countAny2 = count(iterator_to_array($enum));
26var_dump($countAny == $countAny2);
27
28$enum = IntlTimeZone::createTimeZoneIDEnumeration(
29	IntlTimeZone::TYPE_ANY, null, -3600000);
30$values = iterator_to_array($enum);
31
32print_r(
33array_values(
34array_intersect($values,
35array('Etc/GMT+1', 'Atlantic/Azores'))
36));
37
38
39?>
40==DONE==
41--EXPECT--
42bool(true)
43bool(true)
44bool(true)
45Array
46(
47    [0] => Atlantic/Azores
48    [1] => Etc/GMT+1
49)
50==DONE==
51