From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 29 May 2014 21:57:50 -0400
Subject: Use ClassLoader from Symfony instead of autoload

Work around the lack of proper autoload.php from composer by using the
ClassLoader element from Symfony.
http://symfony.com/doc/current/components/class_loader/class_loader.html
Forwarded: not-needed
---
 tests/Doctrine/Tests/TestInit.php | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/Doctrine/Tests/TestInit.php b/tests/Doctrine/Tests/TestInit.php
index e433ae1..598223a 100644
--- a/tests/Doctrine/Tests/TestInit.php
+++ b/tests/Doctrine/Tests/TestInit.php
@@ -17,7 +17,14 @@ spl_autoload_register(function($class)
     }
 });
 
-require_once __DIR__ . "/../../../vendor/autoload.php";
+require_once 'Symfony/Component/ClassLoader/ClassLoader.php';
+use Symfony\Component\ClassLoader\ClassLoader;
+$loader = new ClassLoader();
+$loader->setUseIncludePath(true);
+$loader->register();
+$loader->addPrefixes(array(
+	'Doctrine' => __DIR__.'/../../../lib',
+));
 
 \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
     'Doctrine\Tests\Common\Annotations\Fixtures', __DIR__ . '/../../'
