Example #1
0
 /**
  * Actions after each case.
  *
  * @param TestCaseEvent $event
  */
 public function afterCase(TestCaseEvent $event)
 {
     try {
         $this->dispatcher->dispatch(EventStorage::EV_AFTER_CASE, clone $event);
         $this->precondition->dispatch(EventStorage::EV_AFTER_CASE);
     } catch (\Exception $exception) {
         $this->context->onAfterCase($exception);
         $this->preconditionFailed($exception);
     }
 }