From cf36b414b12bfe215476da8bd8fb5d8543ef5afe Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 20 Jun 2012 22:53:27 +0200 Subject: [PATCH] Fixed the bootstrap of the testsuite --- Tests/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index 0204cd7..13adf81 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -12,3 +12,7 @@ if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader 'curl -s http://getcomposer.org/installer | php'.PHP_EOL. 'php composer.phar install'.PHP_EOL); } + +if (class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) { + \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass')); +}