1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Register annotations to make ClassMetadataFactoryTest pass alone

This commit is contained in:
Vitali 2011-11-20 15:35:58 +03:00 committed by Vitali Yakavenka
parent 62ec98a9fc
commit 3f942e05f3
2 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,8 @@ class ClassMetadataFactoryTest extends \Doctrine\Tests\OrmTestCase
public function testHasGetMetadata_NamespaceSeperatorIsNotNormalized()
{
require_once __DIR__."/../../Models/Global/GlobalNamespaceModel.php";
\Doctrine\Common\Annotations\AnnotationRegistry::registerFile(__DIR__ . '/../../../../../lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
$metadataDriver = $this->createAnnotationDriver(array(__DIR__ . '/../../Models/Global/'));
$entityManager = $this->_createEntityManager($metadataDriver);

View File

@ -17,7 +17,7 @@ abstract class OrmTestCase extends DoctrineTestCase
/**
* @param array $paths
* @return \Doctrine\Common\Annotations\AnnotationReader
* @return \Doctrine\ORM\Mapping\Driver\AnnotationDriver
*/
protected function createAnnotationDriver($paths = array(), $alias = null)
{