Remove explicit annotation registration after it was merged into OrmTestCase
This commit is contained in:
parent
e2953c8cd4
commit
6bcfaed640
@ -4,7 +4,6 @@ namespace Doctrine\Tests\ORM\Mapping;
|
|||||||
|
|
||||||
use Doctrine\ORM\Mapping\ClassMetadata;
|
use Doctrine\ORM\Mapping\ClassMetadata;
|
||||||
use Doctrine\ORM\Events;
|
use Doctrine\ORM\Events;
|
||||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
||||||
|
|
||||||
require_once __DIR__ . '/../../TestInit.php';
|
require_once __DIR__ . '/../../TestInit.php';
|
||||||
|
|
||||||
@ -115,8 +114,6 @@ class AnnotationDriverTest extends AbstractMappingDriverTest
|
|||||||
|
|
||||||
protected function _loadDriver()
|
protected function _loadDriver()
|
||||||
{
|
{
|
||||||
AnnotationRegistry::registerFile(__DIR__ .
|
|
||||||
'/../../../../../lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
|
|
||||||
return $this->createAnnotationDriver();
|
return $this->createAnnotationDriver();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,8 +105,6 @@ 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";
|
||||||
AnnotationRegistry::registerFile(__DIR__ .
|
|
||||||
'/../../../../../lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
|
|
||||||
|
|
||||||
$metadataDriver = $this->createAnnotationDriver(array(__DIR__ . '/../../Models/Global/'));
|
$metadataDriver = $this->createAnnotationDriver(array(__DIR__ . '/../../Models/Global/'));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user