You are here

abstract class BaseFileCacheTest in Plug 7

Hierarchy

  • class \Doctrine\Tests\Common\Cache\CacheTest extends \Doctrine\Tests\DoctrineTestCase

Expanded class hierarchy of BaseFileCacheTest

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php, line 8

Namespace

Doctrine\Tests\Common\Cache
View source
abstract class BaseFileCacheTest extends CacheTest {
  protected $directory;
  public function setUp() {
    do {
      $this->directory = sys_get_temp_dir() . '/doctrine_cache_' . uniqid();
    } while (file_exists($this->directory));
  }
  public function tearDown() {
    if (!is_dir($this->directory)) {
      return;
    }
    $iterator = new RecursiveDirectoryIterator($this->directory);
    foreach (new RecursiveIteratorIterator($iterator, RecursiveIteratorIterator::CHILD_FIRST) as $file) {
      if ($file
        ->isFile()) {
        @unlink($file
          ->getRealPath());
      }
      elseif ($file
        ->isDir()) {
        @rmdir($file
          ->getRealPath());
      }
    }
  }
  protected function isSharedStorage() {
    return false;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseFileCacheTest::$directory protected property
BaseFileCacheTest::isSharedStorage protected function Return whether multiple cache providers share the same storage. Overrides CacheTest::isSharedStorage
BaseFileCacheTest::setUp public function
BaseFileCacheTest::tearDown public function
CacheTest::falseCastedValuesProvider public function The following values get converted to FALSE if you cast them to a boolean.
CacheTest::provideCrudValues public function
CacheTest::testBasicCrudOperations public function @dataProvider provideCrudValues
CacheTest::testDeleteAll public function
CacheTest::testDeleteAllAndNamespaceVersioningBetweenCaches public function
CacheTest::testDeleteAllNamespace public function
CacheTest::testFalseCastedValues public function Check to see that, even if the user saves a value that can be interpreted as false, the cache adapter will still recognize its existence there. 2
CacheTest::testFetchMissShouldReturnFalse public function
CacheTest::testFetchMulti public function
CacheTest::testFetchMultiWillFilterNonRequestedKeys public function
CacheTest::testFlushAll public function
CacheTest::testFlushAllAndNamespaceVersioningBetweenCaches public function
CacheTest::testGetStats public function @group DCOM-43 8
CacheTest::testNamespace public function
CacheTest::_getCacheDriver abstract protected function 16