php-src/ext/gettext/tests/gettext_bindtextdomain-emptydomain.phpt
2009-06-18 07:29:09 +00:00

16 lines
410 B
PHP

--TEST--
Test if bindtextdomain() errors if the domain is empty.
--SKIPIF--
<?php
if (!extension_loaded("gettext")) {
die("skip gettext extension is not loaded.\n");
}
--FILE--
<?php
chdir(dirname(__FILE__));
bindtextdomain('', 'foobar');
--EXPECTF--
Warning: The first parameter of bindtextdomain must not be empty in %s on line %d
--CREDITS--
Till Klampaeckel, till@php.net
PHP Testfest Berlin 2009-05-09