--TEST-- IntlBreakIterator::getPartsIterator(): basic test, ICU >= 58.1 --EXTENSIONS-- intl --SKIPIF-- 57.1'); ?> --FILE-- getPartsIterator(); var_dump(get_class($pi)); print_r(iterator_to_array($pi)); $bi->setText("foo bar"); $pi = $bi->getPartsIterator(); var_dump(get_class($pi->getBreakIterator())); print_r(iterator_to_array($pi)); var_dump($pi->getRuleStatus()); ?> --EXPECTF-- string(17) "IntlPartsIterator" Array ( ) string(26) "IntlRuleBasedBreakIterator" Array ( [0] => foo [1] => [2] => bar ) int(%d)