コード例 #1
0
ファイル: RerunListener.php プロジェクト: focuslife/v0.1
 /**
  * @param SuiteEvent $suiteEvent
  */
 public function afterSuite(SuiteEvent $suiteEvent)
 {
     if ($suiteEvent->isWorthRerunning()) {
         $this->reRunner->reRunSuite();
     }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public function reRunSuite()
 {
     $this->reRunner->reRunSuite();
 }
コード例 #4
0
 public function reRunSuite()
 {
     if ($this->io->isRerunEnabled()) {
         $this->decoratedRerunner->reRunSuite();
     }
 }
コード例 #5
0
 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();
 }