1--TEST-- 2IntlRuleBasedBreakIterator::getRules(): basic test icu >= 68.1 3--EXTENSIONS-- 4intl 5--SKIPIF-- 6<?php if (version_compare(INTL_ICU_VERSION, '68.1') < 0) die('skip for ICU >= 68.1'); ?> 7--FILE-- 8<?php 9ini_set("intl.error_level", E_WARNING); 10ini_set("intl.default_locale", "pt_PT"); 11 12$rules = <<<RULES 13\$LN = [[:letter:] [:number:]]; 14\$S = [.;,:]; 15 16!!forward; 17\$LN+ {1}; 18\$S+ {42}; 19!!reverse; 20\$LN+ {1}; 21\$S+ {42}; 22!!safe_forward; 23!!safe_reverse; 24RULES; 25$rbbi = new IntlRuleBasedBreakIterator($rules); 26var_dump($rbbi->getRules()); 27 28?> 29==DONE== 30--EXPECT-- 31string(119) "$LN=[[:letter:][:number:]];$S=[.;,:];!!forward;$LN+{1};$S+{42};!!reverse;$LN+{1};$S+{42};!!safe_forward;!!safe_reverse;" 32==DONE== 33