1--TEST--
2Transliterator::getErrorCode (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_code(), "\n";
10echo $t->getErrorCode(null), "\n";
11echo transliterator_get_error_code(array()), "\n";
12
13--EXPECTF--
14Warning: transliterator_get_error_code() expects exactly 1 parameter, 0 given in %s on line %d
15
16Warning: transliterator_get_error_code(): transliterator_get_error_code: unable to parse input params in %s on line %d
17
18
19Warning: Transliterator::getErrorCode() expects exactly 0 parameters, 1 given in %s on line %d
20
21Warning: Transliterator::getErrorCode(): transliterator_get_error_code: unable to parse input params in %s on line %d
22
23
24Catchable fatal error: Argument 1 passed to transliterator_get_error_code() must be an instance of Transliterator, array given in %s on line %d
25