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==DONE==
22--EXPECT--
23string(26) "IntlCodePointBreakIterator"
24Array
25(
26    [0] => 0
27    [1] => 3
28    [2] => 6
29    [3] => 9
30    [4] => 12
31    [5] => 15
32    [6] => 18
33    [7] => 21
34    [8] => 24
35    [9] => 27
36    [10] => 30
37    [11] => 33
38    [12] => 36
39    [13] => 39
40    [14] => 42
41    [15] => 45
42)
43==DONE==
44