/**
* Executes the PHPUnit Runner. Will Display help if no config and no path
* supplied
*
* @param InputInterface $input
* @param OutputInterface $output
* @return int|mixed
*/
public function execute(InputInterface $input, OutputInterface $output)
{
if (!$this->hasConfig($input) && !$this->hasPath($input)) {
$this->displayHelp($input, $output);
}
if ($input->getOption('runner') === 'WrapperRunner') {
$runner = new WrapperRunner($this->getRunnerOptions($input));
} else {
$runner = new Runner($this->getRunnerOptions($input));
}
$runner->run();
return $runner->getExitCode();
}