1--TEST--
2IntlBreakIterator::getPartsIterator(): bad args
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);
10ini_set("intl.default_locale", "pt_PT");
11
12$it = IntlBreakIterator::createWordInstance(NULL);
13var_dump($it->getPartsIterator(array()));
14var_dump($it->getPartsIterator(1, 2));
15var_dump($it->getPartsIterator(-1));
16
17?>
18==DONE==
19--EXPECTF--
20
21Warning: IntlBreakIterator::getPartsIterator() expects parameter 1 to be long, array given in %s on line %d
22
23Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad arguments in %s on line %d
24bool(false)
25
26Warning: IntlBreakIterator::getPartsIterator() expects at most 1 parameter, 2 given in %s on line %d
27
28Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad arguments in %s on line %d
29bool(false)
30
31Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad key type in %s on line %d
32bool(false)
33==DONE==
34