public function testTransactionFlush() { $driver = $this->getMockedAdapter(); $driver->expects($this->never())->method('flush'); $this->setExpectedException('SFM\\Transaction\\TransactionException', "Can't `flush` while in transaction"); $adapter = new Adapter($driver); $adapter->beginTransaction(); $adapter->flush(); }
/** * Flushes all data in Memcached. * For debug purposes only! * */ public function flush() { $this->adapter->flush(); }