Peridot\Console\Command::execute PHP Method

execute() protected method

Load and run Suites and Tests
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->eventEmitter->emit('peridot.execute', [$input, $output]);
        $this->eventEmitter->emit('peridot.reporters', [$input, $this->factory]);
        if ($input->getOption('reporters')) {
            $this->listReporters($output);
            return 0;
        }
        if ($reporter = $input->getOption('reporter')) {
            $this->configuration->setReporter($reporter);
        }
        $this->eventEmitter->emit('peridot.load', [$this, $this->configuration]);
        return $this->getResult();
    }