mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-05 06:01:52 +00:00
Add nice error message
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1662 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
64d2da72f8
commit
5dbd455afb
@ -34,7 +34,10 @@ $phpv = 'phpv';
|
|||||||
|
|
||||||
// load configuration
|
// load configuration
|
||||||
if (file_exists('../conf/test-settings.php')) include '../conf/test-settings.php';
|
if (file_exists('../conf/test-settings.php')) include '../conf/test-settings.php';
|
||||||
if (file_exists('../test-settings.php')) include '../test-settings.php';
|
elseif (file_exists('../test-settings.php')) include '../test-settings.php';
|
||||||
|
else {
|
||||||
|
throw new Exception('Please create a test-settings.php file by copying test-settings.sample.php and configuring accordingly');
|
||||||
|
}
|
||||||
|
|
||||||
// load SimpleTest
|
// load SimpleTest
|
||||||
require_once $simpletest_location . 'unit_tester.php';
|
require_once $simpletest_location . 'unit_tester.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user