mirror of
https://github.com/php/php-src.git
synced 2026-03-29 11:42:17 +02:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
39 lines
751 B
PHP
39 lines
751 B
PHP
--TEST--
|
|
IntlRuleBasedBreakIterator::getRules(): basic test
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
|
|
<?php if (version_compare(INTL_ICU_VERSION, '61.1') < 0) die('skip for ICU >= 61.1'); ?>
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "pt_PT");
|
|
|
|
$rules = <<<RULES
|
|
\$LN = [[:letter:] [:number:]];
|
|
\$S = [.;,:];
|
|
|
|
!!forward;
|
|
\$LN+ {1};
|
|
\$S+ {42};
|
|
!!reverse;
|
|
\$LN+ {1};
|
|
\$S+ {42};
|
|
!!safe_forward;
|
|
!!safe_reverse;
|
|
RULES;
|
|
$rbbi = new IntlRuleBasedBreakIterator($rules);
|
|
var_dump($rbbi->getRules());
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(137) "$LN = [[:letter:] [:number:]];
|
|
$S = [.;,:];
|
|
!!forward;
|
|
$LN+ {1};
|
|
$S+ {42};
|
|
!!reverse;
|
|
$LN+ {1};
|
|
$S+ {42};
|
|
!!safe_forward;
|
|
!!safe_reverse;"
|