php-src/ext/intl/tests/timezone_createEnumeration_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

21 lines
441 B
PHP

--TEST--
IntlTimeZone::createEnumeration(): basic test
--EXTENSIONS--
intl
--FILE--
<?php
$tz = IntlTimeZone::createEnumeration();
var_dump(get_class($tz));
$count = count(iterator_to_array($tz));
var_dump($count > 300);
$tz = intltz_create_enumeration();
var_dump(get_class($tz));
$count2 = count(iterator_to_array($tz));
var_dump($count == $count2);
?>
--EXPECT--
string(12) "IntlIterator"
bool(true)
string(12) "IntlIterator"
bool(true)