blob: 5c23bfdfa7acebcf0a32a95d5919027700ce6743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--TEST--
BreakIterator::getPartsIterator(): basic test
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");
$bi = BreakIterator::createWordInstance('pt');
$pi = $bi->getPartsIterator();
var_dump(get_class($pi));
print_r(iterator_to_array($pi));
$bi->setText("foo bar");
$pi = $bi->getPartsIterator();
print_r(iterator_to_array($pi));
?>
==DONE==
--EXPECT--
string(12) "IntlIterator"
Array
(
)
Array
(
[0] => foo
[1] =>
[2] => bar
)
==DONE==
|