mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
20 lines
423 B
PHP
20 lines
423 B
PHP
--TEST--
|
|
IntlTimeZone::countEquivalentIDs(): basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
$count = IntlTimeZone::countEquivalentIDs('Europe/Lisbon');
|
|
var_dump($count >= 2);
|
|
|
|
$count2 = intltz_count_equivalent_ids('Europe/Lisbon');
|
|
var_dump($count2 == $count);
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
==DONE==
|