You are here

public function ClassMetadataFactoryTest::testGetCacheDriver in Zircon Profile 8

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/ClassMetadataFactoryTest.php, line 26

Class

ClassMetadataFactoryTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetCacheDriver() {
  $this
    ->assertNull($this->cmf
    ->getCacheDriver());
  $cache = new ArrayCache();
  $this->cmf
    ->setCacheDriver($cache);
  $this
    ->assertSame($cache, $this->cmf
    ->getCacheDriver());
}