xref: /PHP-7.2/ext/intl/tests/bug76556.phpt (revision a72bab1b)
1--TEST--
2Bug #76556 (get_debug_info handler for BreakIterator shows wrong type)
3--SKIPIF--
4<?php
5if (!extension_loaded('intl')) die('skip intl extension not available');
6?>
7--FILE--
8<?php
9$it = IntlBreakIterator::createCharacterInstance();
10$it->setText('foo');
11var_dump($it);
12?>
13===DONE===
14--EXPECTF--
15object(IntlRuleBasedBreakIterator)#%d (3) {
16  ["valid"]=>
17  bool(true)
18  ["text"]=>
19  string(3) "foo"
20  ["type"]=>
21  string(%d) "%SRuleBasedBreakIterator%S"
22}
23===DONE===
24