php-src/ext/intl/tests/timezone_countEquivalentIDs_basic.phpt
2012-04-01 23:28:00 +01:00

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==