diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-05-31 13:02:02 +0200 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-04 22:25:08 +0200 |
commit | 036b1eb2912872ade10e35f26daf10c65cc3cdea (patch) | |
tree | c378f5cbaecbb1a2e4698ebc38249134e7b00573 /ext/intl/tests/breakiter_getAvailableLocales_error.phpt | |
parent | f5b421621d89c3e87c498ee228c421e67719fbc6 (diff) | |
download | php-git-036b1eb2912872ade10e35f26daf10c65cc3cdea.tar.gz |
Tests for (RuleBased)BreakIterator.
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) |