1--TEST--
2Transliterator::getErrorMessage (error)
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8$t = Transliterator::create("[\p{Bidi_Mirrored}] Hex");
9echo transliterator_get_error_message(), "\n";
10echo $t->getErrorMessage(null), "\n";
11echo transliterator_get_error_message(array()), "\n";
12
13--EXPECTF--
14Warning: transliterator_get_error_message() expects exactly 1 parameter, 0 given in %s on line %d
15
16Warning: transliterator_get_error_message(): transliterator_get_error_message: unable to parse input params in %s on line %d
17
18
19Warning: Transliterator::getErrorMessage() expects exactly 0 parameters, 1 given in %s on line %d
20
21Warning: Transliterator::getErrorMessage(): transliterator_get_error_message: unable to parse input params in %s on line %d
22
23
24Catchable fatal error: Argument 1 passed to transliterator_get_error_message() must be an instance of Transliterator, array given in %s on line %d
25