public function SQLite3Test::testFetchSingle 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::testFetchSingle()
File
- vendor/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));
}