Example #1
0
 public function testSetMetadataDriverImpl()
 {
     $mockedMetadataDriverImpl = $this->getMockBuilder('Doctrine\\Common\\Persistence\\Mapping\\Driver\\MappingDriver')->disableOriginalConstructor()->getMock();
     $this->configuration->setMetadataDriverImpl($mockedMetadataDriverImpl);
     $metadataDriverImpl = $this->configuration->getMetadataDriverImpl();
     $this->assertInstanceOf('Doctrine\\Common\\Persistence\\Mapping\\Driver\\MappingDriver', $metadataDriverImpl);
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 protected function initialize()
 {
     $this->driver = $this->config->getMetadataDriverImpl();
     $this->evm = $this->sm->getEventManager();
     $this->initialized = true;
 }