You are here

public function DriverChainTest::testIsTransient in Zircon Profile 8

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

@group DDC-706

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ChainDriverTest.php, line 81

Class

DriverChainTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testIsTransient() {
  $driver1 = $this
    ->getMock('Doctrine\\Common\\Persistence\\Mapping\\Driver\\MappingDriver');
  $chain = new MappingDriverChain();
  $chain
    ->addDriver($driver1, 'Doctrine\\Tests\\Models\\CMS');
  $this
    ->assertTrue($chain
    ->isTransient('stdClass'), "stdClass isTransient");
}