class SQLite3Test in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/SQLite3CacheTest.php \Doctrine\Tests\Common\Cache\SQLite3Test
Hierarchy
- class \Doctrine\Tests\Common\Cache\CacheTest extends \Doctrine\Tests\DoctrineTestCase
- class \Doctrine\Tests\Common\Cache\SQLite3Test
Expanded class hierarchy of SQLite3Test
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ SQLite3CacheTest.php, line 9
Namespace
Doctrine\Tests\Common\CacheView source
class SQLite3Test extends CacheTest {
/**
* @var SQLite3
*/
private $file, $sqlite;
protected function setUp() {
$this->file = tempnam(null, 'doctrine-cache-test-');
unlink($this->file);
$this->sqlite = new SQLite3($this->file);
}
protected function tearDown() {
$this->sqlite = null;
// DB must be closed before
unlink($this->file);
}
public function testGetStats() {
$this
->assertNull($this
->_getCacheDriver()
->getStats());
}
public function testFetchSingle() {
$id = uniqid('sqlite3_id_');
$data = "\0";
// produces null bytes in serialized format
$this
->_getCacheDriver()
->save($id, $data, 30);
$this
->assertEquals($data, $this
->_getCacheDriver()
->fetch($id));
}
protected function _getCacheDriver() {
return new SQLite3Cache($this->sqlite, 'test_table');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheTest:: |
public | function | The following values get converted to FALSE if you cast them to a boolean. | |
CacheTest:: |
protected | function | Return whether multiple cache providers share the same storage. | 3 |
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 | ||
SQLite3Test:: |
private | property | ||
SQLite3Test:: |
protected | function | ||
SQLite3Test:: |
protected | function | ||
SQLite3Test:: |
public | function | ||
SQLite3Test:: |
public | function |
@group DCOM-43 Overrides CacheTest:: |
|
SQLite3Test:: |
protected | function |
Overrides CacheTest:: |