public function terminate()
 {
     if ($this->suiteEvent) {
         $this->suiteEvent->getResult()->stopOnError(true);
         $this->suiteEvent->getResult()->stopOnFailure(true);
     }
     throw new \RuntimeException("\n\n---------------------------\nTESTS EXECUTION TERMINATED\n---------------------------\n");
 }
Example #2
0
 public function afterSuite(SuiteEvent $e)
 {
     if (!$this->isEnabled()) {
         return;
     }
     $this->mergeToPrint($e->getResult()->getCodeCoverage());
 }
Example #3
0
 public function stopOnFail(SuiteEvent $e)
 {
     $e->getResult()->stopOnError(true);
     $e->getResult()->stopOnFailure(true);
 }