1--TEST--
2Transliterator::createInverse (error)
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7
8ini_set("intl.error_level", E_WARNING);
9
10$tr = Transliterator::create("Katakana-Latin");
11$tr->createInverse(array());
12
13$tr = Transliterator::create("Katakana-Latin");
14transliterator_create_inverse("jj");
15
16--EXPECTF--
17Warning: Transliterator::createInverse() expects exactly 0 parameters, 1 given in %s on line %d
18
19Warning: Transliterator::createInverse(): transliterator_create_inverse: bad arguments in %s on line %d
20
21Catchable fatal error: Argument 1 passed to transliterator_create_inverse() must be an instance of Transliterator, string given in %s on line %d
22