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

19 lines
470 B
PHP

--TEST--
IntlTimeZone::getTZDataVersion(): 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::getTZDataVersion('foo'));
--EXPECTF--
Warning: IntlTimeZone::getTZDataVersion() expects exactly 0 parameters, 1 given in %s on line %d
Warning: IntlTimeZone::getTZDataVersion(): intltz_get_tz_data_version: bad arguments in %s on line %d
bool(false)