コード例 #1
0
ファイル: AdapterTest.php プロジェクト: emoveo/sfm
 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();
 }
コード例 #2
0
ファイル: CacheProvider.php プロジェクト: emoveo/sfm
 /**
  * Flushes all data in Memcached.
  * For debug purposes only!
  *
  */
 public function flush()
 {
     $this->adapter->flush();
 }