Example #1
0
 public function testReadWriteComplex()
 {
     $config = $this->_saveHandlerTableConfig;
     $this->_setupDb($config['primary']);
     $this->_usedSaveHandlers[] = $saveHandler = new Zend_Session_SaveHandler_DbTable($config);
     $saveHandler->open('savepath', 'sessionname');
     $id = '242';
     $this->assertTrue($saveHandler->write($id, serialize($config)));
     $this->assertSame($config, unserialize($saveHandler->read($id)));
 }