1
0
mirror of synced 2024-12-14 23:26: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,6 +67,7 @@ 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/'));

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)
{