dis-bench / src /php /php-src /ext /gettext /tests /gettext_bindtextdomain-emptydomain.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
386 Bytes
--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