1--TEST--
2IntlBreakIterator::next(): 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->first());
14var_dump($bi->next());
15var_dump($bi->next(2));
16var_dump($bi->next(-1));
17var_dump($bi->next(0));
18var_dump($bi->next(NULL));
19?>
20--EXPECT--
21int(0)
22int(3)
23int(7)
24int(4)
25int(4)
26int(7)
27