1--TEST--
2IntlTimeZone::getErrorMessage(): 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
11$tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
12var_dump($tz->getErrorMessage(array()));
13
14var_dump(intltz_get_error_message(null));
15--EXPECTF--
16Warning: IntlTimeZone::getErrorMessage() expects exactly 0 parameters, 1 given in %s on line %d
17
18Warning: IntlTimeZone::getErrorMessage(): intltz_get_error_message: bad arguments in %s on line %d
19bool(false)
20
21Fatal error: Uncaught TypeError: Argument 1 passed to intltz_get_error_message() must be an instance of IntlTimeZone, null given in %s:%d
22Stack trace:
23#0 %s(%d): intltz_get_error_message(NULL)
24#1 {main}
25  thrown in %s on line %d
26