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