1--TEST--
2IntlBreakIterator::createCodePointInstance(): 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$text = 'ตัวอย่างข้อความ';
11
12$codepoint_it = IntlBreakIterator::createCodePointInstance();
13var_dump(get_class($codepoint_it));
14$codepoint_it->setText($text);
15
16print_r(iterator_to_array($codepoint_it));
17
18?>
19--EXPECT--
20string(26) "IntlCodePointBreakIterator"
21Array
22(
23    [0] => 0
24    [1] => 3
25    [2] => 6
26    [3] => 9
27    [4] => 12
28    [5] => 15
29    [6] => 18
30    [7] => 21
31    [8] => 24
32    [9] => 27
33    [10] => 30
34    [11] => 33
35    [12] => 36
36    [13] => 39
37    [14] => 42
38    [15] => 45
39)
40