abstract class BaseFileCacheTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/BaseFileCacheTest.php \Doctrine\Tests\Common\Cache\BaseFileCacheTest
Hierarchy
- class \Doctrine\Tests\Common\Cache\CacheTest extends \Doctrine\Tests\DoctrineTestCase
- class \Doctrine\Tests\Common\Cache\BaseFileCacheTest
Expanded class hierarchy of BaseFileCacheTest
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ BaseFileCacheTest.php, line 8
Namespace
Doctrine\Tests\Common\CacheView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseFileCacheTest:: |
protected | property | ||
BaseFileCacheTest:: |
protected | function |
Return whether multiple cache providers share the same storage. Overrides CacheTest:: |
|
BaseFileCacheTest:: |
public | function | ||
BaseFileCacheTest:: |
public | function | ||
CacheTest:: |
public | function | The following values get converted to FALSE if you cast them to a boolean. | |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | @dataProvider provideCrudValues | |
CacheTest:: |
public | function | Check to see that objects are correctly serialized and unserialized by the cache provider. | 1 |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
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:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | Check to see that objects fetched via fetchMultiple are properly unserialized | 1 |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | @group DCOM-43 | 8 |
CacheTest:: |
public | function | ||
CacheTest:: |
abstract protected | function | 16 |