php-src/ext/intl/tests/timezone_createTimeZoneIDEnumeration_basic.phpt
Gina Peter Banyard c42e6d62d8
ext/intl: modernize tests (#19392)
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00

27 lines
496 B
PHP

--TEST--
IntlTimeZone::createTimeZoneIDEnumeration(): basic test
--EXTENSIONS--
intl
--FILE--
<?php
$enum = IntlTimeZone::createTimeZoneIDEnumeration(
IntlTimeZone::TYPE_ANY,
'PT',
-3600000);
var_dump(iterator_to_array($enum));
$enum = intltz_create_time_zone_id_enumeration(
IntlTimeZone::TYPE_ANY,
'PT',
-3600000);
var_dump(iterator_to_array($enum));
?>
--EXPECT--
array(1) {
[0]=>
string(15) "Atlantic/Azores"
}
array(1) {
[0]=>
string(15) "Atlantic/Azores"
}