1--TEST--
2Check how dgettext() with wrong parameter types and wrong parameter cou types and wrong parameter count behaves.
3--SKIPIF--
4<?php
5	if (!extension_loaded("gettext")) {
6		die("skip extension gettext not loaded\n");
7	}
8    if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
9        die("skip en_US.UTF-8 locale not supported.");
10    }
11
12?>
13--FILE--
14<?php
15    chdir(dirname(__FILE__));
16    setlocale(LC_ALL, 'en_US.UTF-8');
17    dgettext ('foo');
18    dgettext ();
19
20    dgettext(array(), 'foo');
21    dgettext('foo', array());
22
23?>
24--EXPECTF--
25Warning: dgettext() expects exactly 2 parameters, 1 given in %s.php on line %d
26
27Warning: dgettext() expects exactly 2 parameters, 0 given in %s.php on line %d
28
29Warning: dgettext() expects parameter 1 to be string, array given in %s.php on line %d
30
31Warning: dgettext() expects parameter 2 to be string, array given in %s.php on line %d
32--CREDITS--
33Moritz Neuhaeuser, info@xcompile.net
34PHP Testfest Berlin 2009-05-09
35