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