From: Chuck Hagenbuch Date: Tue, 29 Sep 2009 13:27:05 +0000 (-0400) Subject: Figured out why I was getting errors; include PHPUnit/Framework.php X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fbccac8b24325928838802685f0f9bb13f3a7256;p=horde.git Figured out why I was getting errors; include PHPUnit/Framework.php --- diff --git a/framework/Db/test/Horde/Db/AllTests.php b/framework/Db/test/Horde/Db/AllTests.php index a5d652de3..52c586803 100644 --- a/framework/Db/test/Horde/Db/AllTests.php +++ b/framework/Db/test/Horde/Db/AllTests.php @@ -16,7 +16,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'Horde_Db_AllTests::main'); } -require_once 'PHPUnit/Framework/TestSuite.php'; +require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; require_once dirname(__FILE__) . '/Adapter/MissingTest.php'; @@ -44,7 +44,7 @@ class Horde_Db_AllTests { // Ensure a default timezone is set. date_default_timezone_set('America/New_York'); - // Set up autoload + // Set up include_path and autoloading set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path()); if (!spl_autoload_functions()) { spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class); @include_once "$filename.php";'));