function it_should_call_afterSuiteEvent(SuiteEvent $example) { $fatalError = '3'; $currentExample = new CurrentExampleTracker(); $currentExample->setCurrentExample("Exited with code: " . $fatalError); $example->getResult()->willReturn($fatalError); $this->afterSuiteEvent($example); $example->getResult()->shouldHaveBeenCalled(); }
public function afterSuite(SuiteEvent $event) { if (!$this->enabled) { return; } if (0 !== $event->getResult()) { return; } $this->output[] = $this->reporter->getOutput($this->coverage); }
public function afterSuiteEvent(SuiteEvent $event) { $this->currentExample->setCurrentExample('Exited with code: ' . $event->getResult()); }