1--TEST--
2Check how ngettext() with wrong parameters behaves.
3--SKIPIF--
4<?php
5	if (!extension_loaded("gettext")) {
6		die("SKIP extension gettext not loaded\n");
7	}
8
9?>
10--FILE--
11<?php
12ngettext(array(), "", 1);
13ngettext("", array(), 1);
14ngettext("", "", array());
15ngettext();
16ngettext("");
17ngettext("", "");
18?>
19--EXPECTF--
20Warning: ngettext() expects parameter 1 to be string, array given in %s on line 2
21
22Warning: ngettext() expects parameter 2 to be string, array given in %s on line 3
23
24Warning: ngettext() expects parameter 3 to be long, array given in %s on line 4
25
26Warning: ngettext() expects exactly 3 parameters, 0 given in %s on line 5
27
28Warning: ngettext() expects exactly 3 parameters, 1 given in %s on line 6
29
30Warning: ngettext() expects exactly 3 parameters, 2 given in %s on line 7
31--CREDITS--
32Tim Eggert, tim@elbart.com
33PHP Testfest Berlin 2009-05-09
34