gettext_bindtextdomain-emptydomain.phpt 411 B

12345678910111213141516
  1. --TEST--
  2. Test if bindtextdomain() errors if the domain is empty.
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded("gettext")) {
  6. die("skip gettext extension is not loaded.\n");
  7. }
  8. --FILE--
  9. <?php
  10. chdir(dirname(__FILE__));
  11. bindtextdomain('', 'foobar');
  12. --EXPECTF--
  13. Warning: The first parameter of bindtextdomain must not be empty in %s on line %d
  14. --CREDITS--
  15. Till Klampaeckel, till@php.net
  16. PHP Testfest Berlin 2009-05-09