public function run(PHPUnit\Runner $runner, \PHPUnit_Framework_TestResult $result, $options) { $this->dispatcher->dispatch(Events::SUITE_BEFORE, new Event\SuiteEvent($this->suite, $result, $this->settings)); $runner->doEnhancedRun($this->suite, $result, $options); $this->dispatcher->dispatch(Events::SUITE_AFTER, new Event\SuiteEvent($this->suite, $result, $this->settings)); }
public function run(\Codeception\PHPUnit\Runner $runner, \PHPUnit_Framework_TestResult $result, $options) { $this->dispatcher->dispatch('suite.before', new Event\Suite($this->suite, $result, $this->settings)); $runner->doEnhancedRun($this->suite, $result, $options); $this->dispatcher->dispatch('suite.after', new Event\Suite($this->suite, $result, $this->settings)); }