Skip to content
Browse files

Merge pull request #200 from velovint/StandaloneTestsFailing

Register DoctrineAnnotations on call to OrmTestCase::createAnnotationDri...
  • Loading branch information...
2 parents ef33454 + 507c8f4 commit 2b7360e7382f282c992b0a0227c22ebc22839435 @beberlei beberlei committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/Doctrine/Tests/OrmTestCase.php
View
2 tests/Doctrine/Tests/OrmTestCase.php
@@ -52,6 +52,8 @@ protected function createAnnotationDriver($paths = array(), $alias = null)
$reader->setDefaultAnnotationNamespace('Doctrine\ORM\Mapping\\');
}
}
+ \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(
+ __DIR__ . "/../../../lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php");
return new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, (array)$paths);
}

0 comments on commit 2b7360e

Please sign in to comment.
Something went wrong with that request. Please try again.