You are here

public function DriverChainTest::testLoadMetadata_NoDelegatorFound_ThrowsMappingException in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ChainDriverTest.php, line 40

Class

DriverChainTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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);
}