From 507c8f45b47200b7160e69aa8e0939882b872609 Mon Sep 17 00:00:00 2001 From: Vitali Date: Sun, 20 Nov 2011 17:01:56 +0300 Subject: [PATCH] Register DoctrineAnnotations on call to OrmTestCase::createAnnotationDriver() --- tests/Doctrine/Tests/OrmTestCase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Doctrine/Tests/OrmTestCase.php b/tests/Doctrine/Tests/OrmTestCase.php index fa9938d09..2a7b37dc9 100644 --- a/tests/Doctrine/Tests/OrmTestCase.php +++ b/tests/Doctrine/Tests/OrmTestCase.php @@ -52,6 +52,8 @@ abstract class OrmTestCase extends DoctrineTestCase $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); }