File size: 386 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | --TEST--
Test if bindtextdomain() errors if the domain is empty.
--EXTENSIONS--
gettext
--FILE--
<?php
chdir(__DIR__);
try {
bindtextdomain('', 'foobar');
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
bindtextdomain(): Argument #1 ($domain) must not be empty
--CREDITS--
Till Klampaeckel, till@php.net
PHP Testfest Berlin 2009-05-09
|