summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter_following_basic.phpt
blob: 4b56f03c3976fc1b927706679b14228a40a0a9e8 (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)