php-src/ext/gettext/tests/gettext_gettext_error_wrongparams.phpt

18 lines
396 B
Plaintext
Raw Normal View History

2009-06-18 07:25:55 +00:00
--TEST--
Check how gettext() with wrong parameters behaves.
--SKIPIF--
<?php
if (!extension_loaded("gettext")) {
die("skip extension gettext not loaded\n");
}
?>
--FILE--
<?php
gettext (array());
?>
--EXPECTF--
Warning: gettext() expects parameter 1 to be %binary_string_optional%, array given in %s on line 2
--CREDITS--
Moritz Neuhaeuser, info@xcompile.net
PHP Testfest Berlin 2009-05-09