1--TEST-- 2IntlBreakIterator::getPartsIterator(): bad args 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); 10ini_set("intl.default_locale", "pt_PT"); 11 12$it = IntlBreakIterator::createWordInstance(NULL); 13var_dump($it->getPartsIterator(array())); 14var_dump($it->getPartsIterator(1, 2)); 15var_dump($it->getPartsIterator(-1)); 16 17?> 18==DONE== 19--EXPECTF-- 20Warning: IntlBreakIterator::getPartsIterator() expects parameter 1 to be integer, array given in %s on line %d 21 22Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad arguments in %s on line %d 23bool(false) 24 25Warning: IntlBreakIterator::getPartsIterator() expects at most 1 parameter, 2 given in %s on line %d 26 27Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad arguments in %s on line %d 28bool(false) 29 30Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad key type in %s on line %d 31bool(false) 32==DONE== 33