1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Merge pull request #200 from velovint/StandaloneTestsFailing

Register DoctrineAnnotations on call to OrmTestCase::createAnnotationDri...
This commit is contained in:
Benjamin Eberlei 2011-11-26 00:17:12 -08:00
commit 2b7360e738

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