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