You are here

public function MongoDBCacheTest::testSaveWithNonUtf8String in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MongoDBCacheTest.php \Doctrine\Tests\Common\Cache\MongoDBCacheTest::testSaveWithNonUtf8String()

File

vendor/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'));
}