1--TEST--
2IntlBreakIterator factory methods: argument 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
11var_dump(IntlBreakIterator::createWordInstance(array()));
12var_dump(IntlBreakIterator::createSentenceInstance(NULL, 2));
13var_dump(IntlBreakIterator::createCharacterInstance(NULL, 2));
14var_dump(IntlBreakIterator::createTitleInstance(NULL, 2));
15var_dump(IntlBreakIterator::createLineInstance(NULL, 2));
16--EXPECTF--
17Warning: IntlBreakIterator::createWordInstance() expects parameter 1 to be string, array given in %s on line %d
18
19Warning: IntlBreakIterator::createWordInstance(): breakiter_create_word_instance: bad arguments in %s on line %d
20NULL
21
22Warning: IntlBreakIterator::createSentenceInstance() expects at most 1 parameter, 2 given in %s on line %d
23
24Warning: IntlBreakIterator::createSentenceInstance(): breakiter_create_sentence_instance: bad arguments in %s on line %d
25NULL
26
27Warning: IntlBreakIterator::createCharacterInstance() expects at most 1 parameter, 2 given in %s on line %d
28
29Warning: IntlBreakIterator::createCharacterInstance(): breakiter_create_character_instance: bad arguments in %s on line %d
30NULL
31
32Warning: IntlBreakIterator::createTitleInstance() expects at most 1 parameter, 2 given in %s on line %d
33
34Warning: IntlBreakIterator::createTitleInstance(): breakiter_create_title_instance: bad arguments in %s on line %d
35NULL
36
37Warning: IntlBreakIterator::createLineInstance() expects at most 1 parameter, 2 given in %s on line %d
38
39Warning: IntlBreakIterator::createLineInstance(): breakiter_create_line_instance: bad arguments in %s on line %d
40NULL
41