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--EXPECTF-- 16Warning: Transliterator::createInverse() expects exactly 0 parameters, 1 given in %s on line %d 17 18Warning: Transliterator::createInverse(): transliterator_create_inverse: bad arguments in %s on line %d 19 20Fatal error: Uncaught TypeError: Argument 1 passed to transliterator_create_inverse() must be an instance of Transliterator, string given in %s:%d 21Stack trace: 22#0 %s(%d): transliterator_create_inverse('jj') 23#1 {main} 24 thrown in %s on line %d 25