protected function PhpFileCacheTest::_getCacheDriver

Return value

\Doctrine\Common\Cache\CacheProvider

Overrides CacheTest::_getCacheDriver

4 calls to PhpFileCacheTest::_getCacheDriver()
PhpFileCacheTest::testGetStats in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
@group DCOM-43
PhpFileCacheTest::testImplementsSetState in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
PhpFileCacheTest::testLifetime in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php
PhpFileCacheTest::testNotImplementsSetState in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Cache/PhpFileCacheTest.php, line 17

Class

PhpFileCacheTest
@group DCOM-101

Namespace

Doctrine\Tests\Common\Cache

Code

protected function _getCacheDriver() {
  $dir = sys_get_temp_dir() . "/doctrine_cache_" . uniqid();
  $this
    ->assertFalse(is_dir($dir));
  $this->driver = new PhpFileCache($dir);
  $this
    ->assertTrue(is_dir($dir));
  return $this->driver;
}