public function SQLite3Test::testFetchSingle in Plug 7
File
- lib/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ SQLite3CacheTest.php, line 34
Class
Namespace
Doctrine\Tests\Common\CacheCode
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));
}