From 5dbd455afb2cb04b098d7ebd8fd1b888c3db3a9d Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 15 Apr 2008 03:59:36 +0000 Subject: [PATCH] Add nice error message git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1662 48356398-32a2-884e-a903-53898d9a118a --- tests/common.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/common.php b/tests/common.php index 680bd49d..edea3a34 100644 --- a/tests/common.php +++ b/tests/common.php @@ -34,7 +34,10 @@ $phpv = 'phpv'; // load configuration 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 require_once $simpletest_location . 'unit_tester.php'; -- 2.11.4.GIT