12345678910111213141516171819202122232425262728 |
- --TEST--
- IntlBreakIterator::isBoundary(): basic test
- --SKIPIF--
- <?php
- if (!extension_loaded('intl'))
- die('skip intl extension not enabled');
- --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->isBoundary(0));
- var_dump($bi->isBoundary(7));
- var_dump($bi->isBoundary(-1));
- var_dump($bi->isBoundary(1));
- var_dump($bi->isBoundary(50));
- ?>
- ==DONE==
- --EXPECT--
- bool(true)
- bool(true)
- bool(false)
- bool(false)
- bool(false)
- ==DONE==
|