From 4d224c5013affdebcb5933597dac0a7d69697a04 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 10 Aug 2006 12:22:55 +0000 Subject: [PATCH] Use configuration in test runner. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@200 48356398-32a2-884e-a903-53898d9a118a --- tests/index.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/index.php b/tests/index.php index 31ebb57a..8a41a244 100644 --- a/tests/index.php +++ b/tests/index.php @@ -5,11 +5,13 @@ error_reporting(E_ALL); // wishlist: automated calling of this file from multiple PHP versions so we // don't have to constantly switch around -// load files, assume that simpletest directory is in path -require_once 'simpletest/unit_tester.php'; -require_once 'simpletest/reporter.php'; -require_once 'simpletest/mock_objects.php'; +$simpletest_location = 'simpletest/'; +if (file_exists('../config.php')) include_once '../config.php'; +require_once $simpletest_location . 'unit_tester.php'; +require_once $simpletest_location . 'reporter.php'; +require_once $simpletest_location . 'mock_objects.php'; +// debugger require_once 'Debugger.php'; // emulates inserting a dir called HTMLPurifier into your class dir