Download src/php/php-src/ext/gettext/tests/gettext_bindtextdomain-emptydomain.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/gettext_bindtextdomain-emptydomain.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gettext/tests/gettext_bindtextdomain-emptydomain.phpt
-
curl -L -o gettext_bindtextdomain-emptydomain.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gettext/tests/gettext_bindtextdomain-emptydomain.phpt
386 Bytes
| --TEST-- | |
| Test if bindtextdomain() errors if the domain is empty. | |
| --EXTENSIONS-- | |
| gettext | |
| --FILE-- | |
| 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 | |