bug76556.phpt 377 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #76556 (get_debug_info handler for BreakIterator shows wrong type)
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. $it = IntlBreakIterator::createCharacterInstance();
  8. $it->setText('foo');
  9. var_dump($it);
  10. ?>
  11. --EXPECTF--
  12. object(IntlRuleBasedBreakIterator)#%d (3) {
  13. ["valid"]=>
  14. bool(true)
  15. ["text"]=>
  16. string(3) "foo"
  17. ["type"]=>
  18. string(%d) "%SRuleBasedBreakIterator%S"
  19. }