Esempio n. 1
0
 public function testTransactionSetGetCommit()
 {
     $driver = $this->getMockedAdapter();
     $driver->expects($this->at(0))->method('set')->with('test', 'value1');
     $driver->expects($this->at(1))->method('set')->with('test', 'value2');
     $adapter = new Adapter($driver);
     $adapter->set('test', 'value1');
     $adapter->beginTransaction();
     $adapter->set('test', 'value2');
     $adapter->commitTransaction();
 }
Esempio n. 2
0
 /**
  * @deprecated
  */
 public function commitTransaction()
 {
     $this->adapter->commitTransaction();
 }