1--TEST--
2Test if dngettext() errors when you don't supply the correct params.
3--SKIPIF--
4<?php
5if (!extension_loaded("gettext")) {
6    die("skip gettext extension is not loaded.\n");
7}
8if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
9    die("skip en_US.UTF-8 locale not supported.");
10}
11--FILE--
12<?php
13chdir(dirname(__FILE__));
14setlocale(LC_ALL, 'en_US.UTF-8');
15bindtextdomain('dngettextTest', './locale');
16
17var_dump(dngettext('dngettextTest', 'item', 'items'));
18--EXPECTF--
19Warning: dngettext() expects exactly 4 parameters, 3 given in %s on line %d
20NULL
21--CREDITS--
22Till Klampaeckel, till@php.net
23PHP Testfest Berlin 2009-05-09