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

24 lines
647 B
PHP

--TEST--
IntlTimeZone::createEnumeration(): errors
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
var_dump(IntlTimeZone::createEnumeration(array()));
var_dump(IntlTimeZone::createEnumeration(1, 2));
--EXPECTF--
Warning: IntlTimeZone::createEnumeration(): intltz_create_enumeration: invalid argument type in %s on line %d
bool(false)
Warning: IntlTimeZone::createEnumeration() expects at most 1 parameter, 2 given in %s on line %d
Warning: IntlTimeZone::createEnumeration(): intltz_create_enumeration: bad arguments in %s on line %d
bool(false)