diff options
Diffstat (limited to 'ext/intl/tests/bug76556.phpt')
-rw-r--r-- | ext/intl/tests/bug76556.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/intl/tests/bug76556.phpt b/ext/intl/tests/bug76556.phpt new file mode 100644 index 0000000000..57395fba2d --- /dev/null +++ b/ext/intl/tests/bug76556.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #76556 (get_debug_info handler for BreakIterator shows wrong type) +--SKIPIF-- +<?php +if (!extension_loaded('intl')) die('skip intl extension not available'); +?> +--FILE-- +<?php +$it = IntlBreakIterator::createCharacterInstance(); +$it->setText('foo'); +var_dump($it); +?> +===DONE=== +--EXPECTF-- +object(IntlRuleBasedBreakIterator)#%d (3) { + ["valid"]=> + bool(true) + ["text"]=> + string(3) "foo" + ["type"]=> + string(%d) "%sRuleBasedBreakIterator%s" +} +===DONE=== |