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