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(); }
/** * @deprecated */ public function commitTransaction() { $this->adapter->commitTransaction(); }