1--TEST-- 2IntlBreakIterator::preceding(): 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->preceding(5)); 16var_dump($bi->preceding(50)); 17var_dump($bi->preceding(-1)); 18?> 19==DONE== 20--EXPECT-- 21int(4) 22int(21) 23int(0) 24==DONE==