cpbi_getLastCodePoint_error.phpt 546 B

1234567891011121314151617
  1. --TEST--
  2. IntlBreakIterator::getLastCodePoint(): bad args
  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. $it = IntlBreakIterator::createCodePointInstance();
  11. var_dump($it->getLastCodePoint(array()));
  12. --EXPECTF--
  13. Warning: IntlCodePointBreakIterator::getLastCodePoint() expects exactly 0 parameters, 1 given in %s on line %d
  14. Warning: IntlCodePointBreakIterator::getLastCodePoint(): cpbi_get_last_code_point: bad arguments in %s on line %d
  15. bool(false)