You are here

public function SQLite3Test::testFetchSingle in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

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