public function verify(Input $input)
    {
        $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cli.verify.start', $this->exercise, $input));
        $result = new CliResult(
            array_map(
                function (array $args) use ($input) {
                    return $this->doVerify($args, $input);
                },
                $this->preserveOldArgFormat($this->exercise->getArgs())
            )
        );
        $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cli.verify.finish', $this->exercise, $input));
        return $result;
    }
public function verify(Input $input)
    {
        $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cli.verify.start', $this->exercise, $input));
        $result = new CliResult(
            array_map(
                function (array $args) use ($input) {
                    return $this->doVerify($args, $input);
                },
                $this->preserveOldArgFormat($this->exercise->getArgs())
            )
        );
        $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cli.verify.finish', $this->exercise, $input));
        return $result;
    }
public function verify ( Input $ input ) { $ this -> eventDispatcher -> dispatch ( new ExerciseRunnerEvent ( 'cli.verify.start' , $ this -> exercise , $ input ) ) ; $ result = new CliResult ( array_map ( function ( array $ args ) use ( $ input ) { return $ this -> doVerify ( $ args , $ input ) ; } , $ this -> preserveOldArgFormat ( $ this -> exercise -> getArgs ( ) ) ) ) ; $ this -> eventDispatcher -> dispatch ( new ExerciseRunnerEvent ( 'cli.verify.finish' , $ this -> exercise , $ input ) ) ; return $ result ; }
Verifies a solution by invoking PHP from the CLI passing the arguments gathered from the exercise
as command line arguments to PHP.

Events dispatched:

* cli.verify.reference-execute.pre
* cli.verify.reference.executing
* cli.verify.reference-execute.fail (if the reference solution fails to execute)
* cli.verify.student-execute.pre
* cli.verify.student.executing
* cli.verify.student-execute.fail (if the student's solution fails to execute)

@param Input $input The command line arguments passed to the command.
@return CliResult The result of the check.
Verifies a solution by invoking PHP from the CLI passing the arguments gathered from the exercise as command line arguments to PHP .