mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
c42e6d62d8
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
33 lines
656 B
PHP
33 lines
656 B
PHP
--TEST--
|
|
IntlRuleBasedBreakIterator::getRules(): basic test icu >= 68.1
|
|
--EXTENSIONS--
|
|
intl
|
|
--INI--
|
|
intl.default_locale=pt_PT
|
|
--SKIPIF--
|
|
<?php if (version_compare(INTL_ICU_VERSION, '68.1') < 0) die('skip for ICU >= 68.1'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$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());
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
string(119) "$LN=[[:letter:][:number:]];$S=[.;,:];!!forward;$LN+{1};$S+{42};!!reverse;$LN+{1};$S+{42};!!safe_forward;!!safe_reverse;"
|
|
==DONE==
|