1--TEST--
2test if bind_textdomain_codeset() returns correct value
3--EXTENSIONS--
4gettext
5--FILE--
6<?php
7    try {
8    	bind_textdomain_codeset(false,false);
9    } catch (ValueError $e) {
10	    echo $e->getMessage() . PHP_EOL;
11    }
12
13    try {
14    	bind_textdomain_codeset("", "UTF-8");
15    } catch (ValueError $e) {
16	    echo $e->getMessage() . PHP_EOL;
17    }
18    var_dump(bind_textdomain_codeset('messages', "UTF-8"));
19
20    echo "Done\n";
21?>
22--EXPECT--
23bind_textdomain_codeset(): Argument #1 ($domain) must not be empty
24bind_textdomain_codeset(): Argument #1 ($domain) must not be empty
25string(5) "UTF-8"
26Done
27--CREDITS--
28Florian Holzhauer fh-pt@fholzhauer.de
29PHP Testfest Berlin 2009-05-09
30