Register annotations to make ClassMetadataFactoryTest pass alone
This commit is contained in:
parent
62ec98a9fc
commit
3f942e05f3
@ -67,6 +67,7 @@ class ClassMetadataFactoryTest extends \Doctrine\Tests\OrmTestCase
|
|||||||
public function testHasGetMetadata_NamespaceSeperatorIsNotNormalized()
|
public function testHasGetMetadata_NamespaceSeperatorIsNotNormalized()
|
||||||
{
|
{
|
||||||
require_once __DIR__."/../../Models/Global/GlobalNamespaceModel.php";
|
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/'));
|
$metadataDriver = $this->createAnnotationDriver(array(__DIR__ . '/../../Models/Global/'));
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ abstract class OrmTestCase extends DoctrineTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $paths
|
* @param array $paths
|
||||||
* @return \Doctrine\Common\Annotations\AnnotationReader
|
* @return \Doctrine\ORM\Mapping\Driver\AnnotationDriver
|
||||||
*/
|
*/
|
||||||
protected function createAnnotationDriver($paths = array(), $alias = null)
|
protected function createAnnotationDriver($paths = array(), $alias = null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user