1--TEST-- 2IntlTimeZone::countEquivalentIDs(): errors 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 11var_dump(IntlTimeZone::countEquivalentIDs()); 12var_dump(IntlTimeZone::countEquivalentIDs(array())); 13var_dump(IntlTimeZone::countEquivalentIDs("foo\x80")); 14var_dump(IntlTimeZone::countEquivalentIDs("foo bar", 7)); 15--EXPECTF-- 16Warning: IntlTimeZone::countEquivalentIDs() expects exactly 1 parameter, 0 given in %s on line %d 17 18Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: bad arguments in %s on line %d 19bool(false) 20 21Warning: IntlTimeZone::countEquivalentIDs() expects parameter 1 to be string, array given in %s on line %d 22 23Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: bad arguments in %s on line %d 24bool(false) 25 26Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: could not convert time zone id to UTF-16 in %s on line %d 27bool(false) 28 29Warning: IntlTimeZone::countEquivalentIDs() expects exactly 1 parameter, 2 given in %s on line %d 30 31Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: bad arguments in %s on line %d 32bool(false) 33