You are here

public function TestManager::getMetadataFactory in Plug 7

File

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

Class

TestManager

Namespace

Doctrine\Tests\Common\Persistence

Code

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