dis-bench / src /php /php-src /ext /intl /tests /breakiter_following_basic.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
385 Bytes
--TEST--
IntlBreakIterator::following(): 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 zoo bee');
var_dump($bi->following(5));
var_dump($bi->following(50));
var_dump($bi->following(-1));
?>
--EXPECT--
int(7)
int(-1)
int(0)