/** * @param string $configFile * @throws \RuntimeException */ private function runPhpDoxCollector($configFile) { $exitCode = $this->factory->getCLI()->run(new CLIOptions(['--file', $configFile, '--collector'])); if ($exitCode !== CLI::ExitOK) { throw new \RuntimeException("Impossible to collect units metadata"); } }