original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Verifies a solution by invoking PHP from the CLI passing the arguments gathered from the exercise as command line arguments to PHP .