You are here

public function DriverChainTest::testLoadMetadata_NoDelegatorFound_ThrowsMappingException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ChainDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\DriverChainTest::testLoadMetadata_NoDelegatorFound_ThrowsMappingException()

File

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