1--TEST--
2IntlTimeZone::createTimeZoneIDEnumeration(): variant without offset
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    'PT');
13$values = iterator_to_array($enum);
14var_dump(in_array('Europe/Lisbon', $values));
15var_dump(in_array('Atlantic/Azores', $values));
16
17$enum = IntlTimeZone::createTimeZoneIDEnumeration(
18    IntlTimeZone::TYPE_ANY,
19    'PT',
20    null);
21$values2 = iterator_to_array($enum);
22var_dump($values2 == $values);
23
24?>
25--EXPECT--
26bool(true)
27bool(true)
28bool(true)
29