Esempio n. 1
0
 protected function onNotSuccessfulTest(\Exception $e)
 {
     if (isset($this->em) && $this->em->getConnection()->isTransactionActive()) {
         $this->em->getConnection()->rollback();
     }
     parent::onNotSuccessfulTest($e);
 }
Esempio n. 2
0
 protected function onNotSuccessfulTest(\Exception $e)
 {
     try {
         parent::onNotSuccessfulTest($e);
     } catch (\Exception $e) {
         if (isset($this->tester)) {
             print '------------ Acceptance (Fail) ------------' . "\n";
             print "\n";
             print $this->tester->getLog();
             print '------------ /Acceptance ------------' . "\n";
         }
     }
     throw $e;
 }