You are here

public function TestManager::getMetadataFactory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/ManagerRegistryTest.php \Doctrine\Tests\Common\Persistence\TestManager::getMetadataFactory()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/ManagerRegistryTest.php, line 69

Class

TestManager

Namespace

Doctrine\Tests\Common\Persistence

Code

public function getMetadataFactory() {
  $driver = $this
    ->getMock('Doctrine\\Common\\Persistence\\Mapping\\Driver\\MappingDriver');
  $metadata = $this
    ->getMock('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata');
  return new TestClassMetadataFactory($driver, $metadata);
}