summaryrefslogtreecommitdiff
path: root/ext/intl/tests/rbbiter___construct_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/tests/rbbiter___construct_basic.phpt')
-rw-r--r--ext/intl/tests/rbbiter___construct_basic.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/intl/tests/rbbiter___construct_basic.phpt b/ext/intl/tests/rbbiter___construct_basic.phpt
new file mode 100644
index 0000000000..567a09fa2d
--- /dev/null
+++ b/ext/intl/tests/rbbiter___construct_basic.phpt
@@ -0,0 +1,27 @@
+--TEST--
+RuleBasedBreakIterator::__construct: basic test
+--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 RuleBasedBreakIterator($rules);
+var_dump(get_class($rbbi));
+?>
+==DONE==
+--EXPECT--
+string(22) "RuleBasedBreakIterator"
+==DONE== \ No newline at end of file