mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
16 lines
400 B
PHP
16 lines
400 B
PHP
--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 |