php-src/ext/gettext/tests/gettext_bindtextdomain-path.phpt
2009-06-18 07:29:09 +00:00

16 lines
368 B
PHP

--TEST--
Test if bindtextdomain() returns false if path does not exist.
--SKIPIF--
<?php
if (!extension_loaded("gettext")) {
die("skip gettext extension is not loaded.\n");
}
--FILE--
<?php
chdir(dirname(__FILE__));
var_dump(bindtextdomain('example.org', 'foobar'));
--EXPECTF--
bool(false)
--CREDITS--
Till Klampaeckel, till@php.net
PHP Testfest Berlin 2009-05-09