1--TEST--
2IntlBreakIterator::following(): basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "pt_PT");
9
10$bi = IntlBreakIterator::createWordInstance('pt');
11$bi->setText('foo bar trans zoo bee');
12
13var_dump($bi->following(5));
14var_dump($bi->following(50));
15var_dump($bi->following(-1));
16?>
17--EXPECT--
18int(7)
19int(-1)
20int(0)
21