breakiter_isBoundary_basic.phpt 571 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. IntlBreakIterator::isBoundary(): basic test
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('intl'))
  6. die('skip intl extension not enabled');
  7. --FILE--
  8. <?php
  9. ini_set("intl.error_level", E_WARNING);
  10. ini_set("intl.default_locale", "pt_PT");
  11. $bi = IntlBreakIterator::createWordInstance('pt');
  12. $bi->setText('foo bar trans zoo bee');
  13. var_dump($bi->isBoundary(0));
  14. var_dump($bi->isBoundary(7));
  15. var_dump($bi->isBoundary(-1));
  16. var_dump($bi->isBoundary(1));
  17. var_dump($bi->isBoundary(50));
  18. ?>
  19. ==DONE==
  20. --EXPECT--
  21. bool(true)
  22. bool(true)
  23. bool(false)
  24. bool(false)
  25. bool(false)
  26. ==DONE==