Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 /**
  * Flushes all data in Memcached.
  * For debug purposes only!
  *
  */
 public function flush()
 {
     $this->adapter->flush();
 }