summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter_getAvailableLocales_error.phpt
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-05-31 13:02:02 +0200
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-06-04 22:25:08 +0200
commit036b1eb2912872ade10e35f26daf10c65cc3cdea (patch)
treec378f5cbaecbb1a2e4698ebc38249134e7b00573 /ext/intl/tests/breakiter_getAvailableLocales_error.phpt
parentf5b421621d89c3e87c498ee228c421e67719fbc6 (diff)
downloadphp-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.phpt14
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)