summaryrefslogtreecommitdiff
path: root/ext/gettext/tests/gettext_dcgettext-wrongparams.phpt
blob: 372a95740d00d39f3f0f50cc7e367d77c29835d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Test if dcgettext() errors when you don't supply the correct params.
--SKIPIF--
<?php
if (!extension_loaded("gettext")) {
    die("skip gettext extension is not loaded.\n");
}
--FILE--
<?php
var_dump(dcgettext('a', 'b'));
--EXPECTF--
Warning: dcgettext() expects exactly 3 parameters, 2 given in %s on line %d
NULL
--CREDITS--
Christian Weiske, cweiske@php.net
PHP Testfest Berlin 2009-05-09