blob: b30399365a35f4f58aa62778e5e076d84127d951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
IntlBreakIterator::previous(): basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");
$bi = IntlBreakIterator::createWordInstance('pt');
$bi->setText('foo bar trans');
var_dump($bi->last());
var_dump($bi->previous());
?>
--EXPECT--
int(13)
int(8)
|