1--TEST-- 2IntlBreakIterator::last(): 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); 10 11$bi = IntlBreakIterator::createWordInstance('pt'); 12$bi->setText('foo bar trans'); 13 14var_dump($bi->current()); 15var_dump($bi->last()); 16var_dump($bi->current()); 17--EXPECTF-- 18int(0) 19int(13) 20int(13) 21