1--TEST--
2IntlBreakIterator::createCodePointInstance(): basic test
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6    die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10ini_set("intl.default_locale", "pt_PT");
11
12$text = 'ตัวอย่างข้อความ';
13
14$codepoint_it = IntlBreakIterator::createCodePointInstance();
15var_dump(get_class($codepoint_it));
16$codepoint_it->setText($text);
17
18print_r(iterator_to_array($codepoint_it));
19
20?>
21--EXPECT--
22string(26) "IntlCodePointBreakIterator"
23Array
24(
25    [0] => 0
26    [1] => 3
27    [2] => 6
28    [3] => 9
29    [4] => 12
30    [5] => 15
31    [6] => 18
32    [7] => 21
33    [8] => 24
34    [9] => 27
35    [10] => 30
36    [11] => 33
37    [12] => 36
38    [13] => 39
39    [14] => 42
40    [15] => 45
41)
42