From 4f8fc242267767d96588ee056e781ff0a01d37ab Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Tue, 25 May 2010 11:42:09 -0400 Subject: [PATCH] Fixing TestInit to work with submodules. --- tests/Doctrine/Tests/TestInit.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/TestInit.php b/tests/Doctrine/Tests/TestInit.php index 1c7bea434..a100c7a35 100644 --- a/tests/Doctrine/Tests/TestInit.php +++ b/tests/Doctrine/Tests/TestInit.php @@ -8,7 +8,13 @@ error_reporting(E_ALL | E_STRICT); require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; -require_once __DIR__ . '/../../../lib/Doctrine/Common/ClassLoader.php'; +require_once __DIR__ . '/../../../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php'; + +$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\Common', __DIR__ . '/../../../lib/vendor/doctrine-common/lib'); +$classLoader->register(); + +$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\DBAL', __DIR__ . '/../../../lib/vendor/doctrine-dbal/lib'); +$classLoader->register(); $classLoader = new \Doctrine\Common\ClassLoader('Doctrine'); $classLoader->register();