public function DriverChainTest::testLoadMetadata_NoDelegatorFound_ThrowsMappingException in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ ChainDriverTest.php, line 40
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testLoadMetadata_NoDelegatorFound_ThrowsMappingException() {
$className = 'Doctrine\\Tests\\Common\\Persistence\\Mapping\\DriverChainEntity';
$classMetadata = $this
->getMock('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata');
$chain = new MappingDriverChain();
$this
->setExpectedException('Doctrine\\Common\\Persistence\\Mapping\\MappingException');
$chain
->loadMetadataForClass($className, $classMetadata);
}