diff options
Diffstat (limited to 'ext/intl/tests/breakiter_getAvailableLocales_error.phpt')
-rw-r--r-- | ext/intl/tests/breakiter_getAvailableLocales_error.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/intl/tests/breakiter_getAvailableLocales_error.phpt b/ext/intl/tests/breakiter_getAvailableLocales_error.phpt new file mode 100644 index 0000000000..4772e8ae2b --- /dev/null +++ b/ext/intl/tests/breakiter_getAvailableLocales_error.phpt @@ -0,0 +1,14 @@ +--TEST-- +BreakIterator::getAvailableLocales(): arg errors +--FILE-- +<?php +ini_set("intl.error_level", E_WARNING); + +var_dump(BreakIterator::getAvailableLocales(array())); + +--EXPECTF-- + +Warning: BreakIterator::getAvailableLocales() expects exactly 0 parameters, 1 given in %s on line %d + +Warning: BreakIterator::getAvailableLocales(): breakiter_get_available_locales: bad arguments in %s on line %d +bool(false) |