1--TEST--
2IntlRuleBasedBreakIterator::getRuleStatusVec(): basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "pt_PT");
9
10$rules = <<<RULES
11\$LN = [[:letter:] [:number:]];
12\$S = [.;,:];
13
14!!forward;
15\$LN+ {1};
16[^.]+ {4};
17\$S+ {42};
18!!reverse;
19\$LN+ {1};
20[^.]+ {4};
21\$S+ {42};
22!!safe_forward;
23!!safe_reverse;
24RULES;
25$rbbi = new IntlRuleBasedBreakIterator($rules);
26$rbbi->setText('sdfkjsdf88á.... ,;');
27
28do {
29    var_dump($rbbi->current(), $rbbi->getRuleStatusVec());
30} while ($rbbi->next() != IntlBreakIterator::DONE);
31
32?>
33--EXPECT--
34int(0)
35array(1) {
36  [0]=>
37  int(0)
38}
39int(12)
40array(2) {
41  [0]=>
42  int(1)
43  [1]=>
44  int(4)
45}
46int(16)
47array(1) {
48  [0]=>
49  int(42)
50}
51int(19)
52array(1) {
53  [0]=>
54  int(4)
55}
56