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
17
18--EXPECTF--
19
20Warning: IntlBreakIterator::createWordInstance() expects parameter 1 to be string, array given in %s on line %d
21
22Warning: IntlBreakIterator::createWordInstance(): breakiter_create_word_instance: bad arguments in %s on line %d
23NULL
24
25Warning: IntlBreakIterator::createSentenceInstance() expects exactly 1 parameter, 2 given in %s on line %d
26
27Warning: IntlBreakIterator::createSentenceInstance(): breakiter_create_sentence_instance: bad arguments in %s on line %d
28NULL
29
30Warning: IntlBreakIterator::createCharacterInstance() expects exactly 1 parameter, 2 given in %s on line %d
31
32Warning: IntlBreakIterator::createCharacterInstance(): breakiter_create_character_instance: bad arguments in %s on line %d
33NULL
34
35Warning: IntlBreakIterator::createTitleInstance() expects exactly 1 parameter, 2 given in %s on line %d
36
37Warning: IntlBreakIterator::createTitleInstance(): breakiter_create_title_instance: bad arguments in %s on line %d
38NULL
39
40Warning: IntlBreakIterator::createLineInstance() expects exactly 1 parameter, 2 given in %s on line %d
41
42Warning: IntlBreakIterator::createLineInstance(): breakiter_create_line_instance: bad arguments in %s on line %d
43NULL
44