You are here

public function MongoDBCacheTest::testSaveWithNonUtf8String in Plug 7

File

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

Class

MongoDBCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testSaveWithNonUtf8String() {

  // Invalid 2-octet sequence
  $data = "";
  $cache = $this
    ->_getCacheDriver();
  $this
    ->assertTrue($cache
    ->save('key', $data));
  $this
    ->assertEquals($data, $cache
    ->fetch('key'));
}