/**
  * @test
  */
 public function RollBack()
 {
     $this->transaction->beginTransaction();
     $rollBacked = $this->transaction->rollBack();
     $this->assertTrue($rollBacked);
     $this->assertTrue(ConnectionMock::$rollBacked);
     $this->assertFalse($this->transaction->isTransactionActive());
 }
 /**
  * @return ProxyStrategyResponse
  */
 public function onException(ProxyStrategyRequest $proxyStrategyRequest)
 {
     if ($this->transaction->isTransactionActive()) {
         return $this->transaction->rollBack();
     }
 }