--TEST-- Check if textdomain() returns the new domain --EXTENSIONS-- gettext --SKIPIF-- --FILE-- getMessage() . PHP_EOL; } try { textdomain(''); } catch (\ValueError $e) { echo $e->getMessage(); } ?> --EXPECT-- test test foo textdomain(): Argument #1 ($domain) cannot be zero textdomain(): Argument #1 ($domain) must not be empty --CREDITS-- Christian Weiske, cweiske@php.net PHP Testfest Berlin 2009-05-09