PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/intl/tests/rbbiter___construct_basic.phpt ('IntlRuleBasedBreakIterator::__construct: basic test')

Script

1: <?php
2: ini_set
("intl.error_level"E_WARNING);
3:
ini_set("intl.default_locale""pt_PT");
4:
5:
$rules = <<<RULES
6:
\$LN = [[:letter:] [:number:]];
7: \$S = [.;,:];
8:
9: !!forward;
10: \$LN+ {1};
11: \$S+ {42};
12: !!reverse;
13: \$LN+ {1};
14: \$S+ {42};
15: !!safe_forward;
16: !!safe_reverse;
17:
RULES;
18:
$rbbi = new IntlRuleBasedBreakIterator($rules);
19:
var_dump(get_class($rbbi));
20:
21: try {
22:     
$obj = new IntlRuleBasedBreakIterator('[\p{Letter}\uFFFD]+;[:number:]+''aoeu');
23: } catch (
IntlException $e) {
24:     
var_dump(intl_get_error_code(), intl_get_error_message());
25: }
26:
27:
?>
28:
==DONE==
29:

Expected

string(26) "IntlRuleBasedBreakIterator"
int(1)
string(93) "rbbi_create_instance: unable to create instance from compiled rules: U_ILLEGAL_ARGUMENT_ERROR"
==DONE==

Output

string(26) "IntlRuleBasedBreakIterator"
int(16)
string(76) "rbbi_create_instance: compiled rules require ICU >= 4.8: U_UNSUPPORTED_ERROR"
==DONE==

Diff

002+ int(16)
003+ string(76) "rbbi_create_instance: compiled rules require ICU >= 4.8: U_UNSUPPORTED_ERROR"
002- int(1)
003- string(93) "rbbi_create_instance: unable to create instance from compiled rules: U_ILLEGAL_ARGUMENT_ERROR"

 

Generated at Mon, 18 Jun 2018 17:33:50 +0000 (20 hours ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.