You are here

public function SQLite3Test::testFetchSingle in Plug 7

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/SQLite3CacheTest.php, line 34

Class

SQLite3Test

Namespace

Doctrine\Tests\Common\Cache

Code

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));
}