1--TEST--
2IntlBreakIterator::next(): basic test
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10ini_set("intl.default_locale", "pt_PT");
11
12$bi = IntlBreakIterator::createWordInstance('pt');
13$bi->setText('foo bar trans zoo bee');
14
15var_dump($bi->first());
16var_dump($bi->next());
17var_dump($bi->next(2));
18var_dump($bi->next(-1));
19var_dump($bi->next(0));
20var_dump($bi->next(NULL));
21?>
22==DONE==
23--EXPECT--
24int(0)
25int(3)
26int(7)
27int(4)
28int(4)
29int(7)
30==DONE==
31