'beforeSuite', Events::SUITE_AFTER => 'afterSuite', ]; /** * @var Remote */ protected $module; protected function isEnabled() { return $this->module === null and $this->settings['enabled']; } public function beforeSuite(SuiteEvent $e) { $this->applySettings($e->getSettings()); $this->module = $this->getServerConnectionModule($e->getSuite()->getModules()); if (!$this->isEnabled()) { return; } $this->applyFilter($e->getResult()); } public function afterSuite(SuiteEvent $e) { if (!$this->isEnabled()) { return; } $this->mergeToPrint($e->getResult()->getCodeCoverage()); } }