breakiter_getText_basic.phpt 359 B

1234567891011121314151617
  1. --TEST--
  2. IntlBreakIterator::getText(): 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. $bi = IntlBreakIterator::createWordInstance('pt');
  11. var_dump($bi->getText());
  12. $bi->setText('foo bar');
  13. var_dump($bi->getText());
  14. --EXPECT--
  15. NULL
  16. string(7) "foo bar"