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