1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/ext/gettext/tests/gettext_bindtextdomain-emptydomain.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

22 lines
384 B
PHP

--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) cannot be empty
--CREDITS--
Till Klampaeckel, till@php.net
PHP Testfest Berlin 2009-05-09