blob: b6af697b479eb38aa96c2deddf8126166a510fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
IntlBreakIterator::following(): 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 zoo bee');
var_dump($bi->following(5));
var_dump($bi->following(50));
var_dump($bi->following(-1));
?>
--EXPECT--
int(7)
int(-1)
int(0)
|