1--TEST--
2IntlBreakIterator::getLocale(): arg errors
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11$bi = new IntlRuleBasedBreakIterator('[\p{Letter}\uFFFD]+;[:number:]+;');
12$bi->setText("\x80sdfé\x90d888 dfsa9");
13
14var_dump($bi->getLocale(1, 2));
15var_dump($bi->getLocale(array()));
16var_dump($bi->getLocale());
17--EXPECTF--
18Warning: IntlBreakIterator::getLocale() expects exactly 1 parameter, 2 given in %s on line %d
19
20Warning: IntlBreakIterator::getLocale(): breakiter_get_locale: bad arguments in %s on line %d
21bool(false)
22
23Warning: IntlBreakIterator::getLocale() expects parameter 1 to be int, array given in %s on line %d
24
25Warning: IntlBreakIterator::getLocale(): breakiter_get_locale: bad arguments in %s on line %d
26bool(false)
27
28Warning: IntlBreakIterator::getLocale() expects exactly 1 parameter, 0 given in %s on line %d
29
30Warning: IntlBreakIterator::getLocale(): breakiter_get_locale: bad arguments in %s on line %d
31bool(false)
32