1--TEST--
2IntlBreakIterator::following()/preceding()/isBoundary(): 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->following(1, 2));
15var_dump($bi->following(array()));
16var_dump($bi->preceding(1, 2));
17var_dump($bi->preceding(array()));
18var_dump($bi->isBoundary(1, 2));
19var_dump($bi->isBoundary(array()));
20--EXPECTF--
21Warning: IntlBreakIterator::following() expects exactly 1 parameter, 2 given in %s on line %d
22
23Warning: IntlBreakIterator::following(): breakiter_following: bad arguments in %s on line %d
24bool(false)
25
26Warning: IntlBreakIterator::following() expects parameter 1 to be int, array given in %s on line %d
27
28Warning: IntlBreakIterator::following(): breakiter_following: bad arguments in %s on line %d
29bool(false)
30
31Warning: IntlBreakIterator::preceding() expects exactly 1 parameter, 2 given in %s on line %d
32
33Warning: IntlBreakIterator::preceding(): breakiter_preceding: bad arguments in %s on line %d
34bool(false)
35
36Warning: IntlBreakIterator::preceding() expects parameter 1 to be int, array given in %s on line %d
37
38Warning: IntlBreakIterator::preceding(): breakiter_preceding: bad arguments in %s on line %d
39bool(false)
40
41Warning: IntlBreakIterator::isBoundary() expects exactly 1 parameter, 2 given in %s on line %d
42
43Warning: IntlBreakIterator::isBoundary(): breakiter_is_boundary: bad arguments in %s on line %d
44bool(false)
45
46Warning: IntlBreakIterator::isBoundary() expects parameter 1 to be int, array given in %s on line %d
47
48Warning: IntlBreakIterator::isBoundary(): breakiter_is_boundary: bad arguments in %s on line %d
49bool(false)
50