/** * @param OutputInterface $outputInterface * * @throws UnitTestsException */ public function run(OutputInterface $outputInterface) { if ($this->isEnabled()) { $this->phpunitHandler->setOutput($outputInterface); $this->phpunitHandler->run(); } }
/** * @param OutputInterface $outputInterface * * @throws UnitTestsException */ public function run(OutputInterface $outputInterface) { /** @var HookConfigExtraToolInterface $data */ $data = $this->preCommitConfig; $extraOptions = $data->extraOptions(PhpUnitConfigData::TOOL); if (true === $extraOptions['enabled']) { if (true === $extraOptions['random-mode']) { $this->phpUnitRandomizerHandler->setOutput($outputInterface); $this->phpUnitRandomizerHandler->run(); } else { $this->phpunitHandler->setOutput($outputInterface); $this->phpunitHandler->run(); } } }