1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Register DoctrineAnnotations on call to OrmTestCase::createAnnotationDriver()

This commit is contained in:
Vitali 2011-11-20 17:01:56 +03:00
parent bda593a66d
commit 507c8f45b4

View File

@ -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);
}