You are here

public function DriverChainTest::testIsTransient in Plug 7

@group DDC-706

File

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