1
0
mirror of synced 2025-03-25 01:13:55 +03:00

Merge pull request #516 from lstrojny/bug/phpunit-composer

Allow running tests with composer
This commit is contained in:
Benjamin Eberlei 2012-11-17 01:25:16 -08:00
commit 3666d1485a

View File

@ -6,11 +6,12 @@ namespace Doctrine\Tests;
error_reporting(E_ALL | E_STRICT);
require_once __DIR__ . '/../../../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php';
if (isset($GLOBALS['DOCTRINE_COMMON_PATH'])) {
require_once $GLOBALS['DOCTRINE_COMMON_PATH'] . '/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine\Common', $GLOBALS['DOCTRINE_COMMON_PATH']);
} else {
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();