dis-bench / src /php /php-src /ext /intl /tests /breakiter_previous_basic.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
330 Bytes
--TEST--
IntlBreakIterator::previous(): basic test
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");
$bi = IntlBreakIterator::createWordInstance('pt');
$bi->setText('foo bar trans');
var_dump($bi->last());
var_dump($bi->previous());
?>
--EXPECT--
int(13)
int(8)