public function MongoDBCacheTest::testSaveWithNonUtf8String in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Doctrine\Tests\Common\CacheCode
public function testSaveWithNonUtf8String() {
// Invalid 2-octet sequence
$data = "";
$cache = $this
->_getCacheDriver();
$this
->assertTrue($cache
->save('key', $data));
$this
->assertEquals($data, $cache
->fetch('key'));
}