original_string: public function verify(Input $input)
      {
          $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cgi.verify.start', $this->exercise, $input));
          $result = new CgiResult(
              array_map(
                  function (RequestInterface $request) use ($input) {
                      return $this->checkRequest($request, $input->getArgument('program'));
                  },
                  $this->exercise->getRequests()
              )
          );
          $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cgi.verify.finish', $this->exercise, $input));
          return $result;
      }
code: public function verify(Input $input)
      {
          $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cgi.verify.start', $this->exercise, $input));
          $result = new CgiResult(
              array_map(
                  function (RequestInterface $request) use ($input) {
                      return $this->checkRequest($request, $input->getArgument('program'));
                  },
                  $this->exercise->getRequests()
              )
          );
          $this->eventDispatcher->dispatch(new ExerciseRunnerEvent('cgi.verify.finish', $this->exercise, $input));
          return $result;
      }
code_tokens: public function verify ( Input $ input ) { $ this -> eventDispatcher -> dispatch ( new ExerciseRunnerEvent ( 'cgi.verify.start' , $ this -> exercise , $ input ) ) ; $ result = new CgiResult ( array_map ( function ( RequestInterface $ request ) use ( $ input ) { return $ this -> checkRequest ( $ request , $ input -> getArgument ( 'program' ) ) ; } , $ this -> exercise -> getRequests ( ) ) ) ; $ this -> eventDispatcher -> dispatch ( new ExerciseRunnerEvent ( 'cgi.verify.finish' , $ this -> exercise , $ input ) ) ; return $ result ; }
docstring: Verifies a solution by invoking PHP via the `php-cgi` binary, populating all the super globals with
  the information from the request objects returned from the exercise. The exercise can return multiple
  requests so the solution will be invoked for however many requests there are.
  
  Events dispatched (for each request):
  
  * cgi.verify.reference-execute.pre
  * cgi.verify.reference.executing
  * cgi.verify.reference-execute.fail (if the reference solution fails to execute)
  * cgi.verify.student-execute.pre
  * cgi.verify.student.executing
  * cgi.verify.student-execute.fail (if the student's solution fails to execute)
  
  @param Input $input The command line arguments passed to the command.
  @return CgiResult The result of the check.
docstring_tokens: Verifies a solution by invoking PHP via the php - cgi binary populating all the super globals with the information from the request objects returned from the exercise . The exercise can return multiple requests so the solution will be invoked for however many requests there are .