public function DriverChainTest::testIsTransient

@group DDC-706

File

drupal/core/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");
}