Example #1
0
 /**
  * @param SuiteEvent $suiteEvent
  */
 public function afterSuite(SuiteEvent $suiteEvent)
 {
     if ($suiteEvent->isWorthRerunning()) {
         $this->reRunner->reRunSuite();
     }
 }
 function it_tells_the_rerunner_to_rerun_if_it_is_worth_doing_so(SuiteEvent $suiteEvent, ReRunner $reRunner)
 {
     $suiteEvent->isWorthRerunning()->willReturn(true);
     $this->afterSuite($suiteEvent);
     $reRunner->reRunSuite()->shouldHaveBeenCalled();
 }
 public function reRunSuite()
 {
     $this->reRunner->reRunSuite();
 }
Example #4
0
 public function reRunSuite()
 {
     if ($this->io->isRerunEnabled()) {
         $this->decoratedRerunner->reRunSuite();
     }
 }
 function it_does_not_rerun_the_suite_if_it_is_disabled_in_the_config(IO $io, ReRunner $decoratedReRunner)
 {
     $io->isRerunEnabled()->willReturn(false);
     $this->reRunSuite();
     $decoratedReRunner->reRunSuite()->shouldNotHaveBeenCalled();
 }