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')); +}