protected function FilesystemCacheTest::_getCacheDriver

Return value

\Doctrine\Common\Cache\CacheProvider

Overrides CacheTest::_getCacheDriver

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

File

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

Class

FilesystemCacheTest
@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 FilesystemCache($dir);
  $this
    ->assertTrue(is_dir($dir));
  return $this->driver;
}