original_string: protected function validateRun()
      {
          $status = $this->process->getExitCode();
          $error  = $this->process->getErrorOutput();
  
          if ($status !== 0 and $error !== '') {
              throw new \RuntimeException(
                  sprintf(
                      "The exit status code %s says something went wrong:\n stderr: %s\n stdout: %s\ncommand: %s.",
                      $status,
                      $error,
                      $this->process->getOutput(),
                      $this->command
                  )
              );
          }
      }
code: protected function validateRun()
      {
          $status = $this->process->getExitCode();
          $error  = $this->process->getErrorOutput();
  
          if ($status !== 0 and $error !== '') {
              throw new \RuntimeException(
                  sprintf(
                      "The exit status code %s says something went wrong:\n stderr: %s\n stdout: %s\ncommand: %s.",
                      $status,
                      $error,
                      $this->process->getOutput(),
                      $this->command
                  )
              );
          }
      }
code_tokens: protected function validateRun ( ) { $ status = $ this -> process -> getExitCode ( ) ; $ error = $ this -> process -> getErrorOutput ( ) ; if ( $ status !== 0 and $ error !== '' ) { throw new \ RuntimeException ( sprintf ( "The exit status code %s says something went wrong:\n stderr: %s\n stdout: %s\ncommand: %s." , $ status , $ error , $ this -> process -> getOutput ( ) , $ this -> command ) ) ; } }
docstring: Validate that a run process was successful.
  
  @throws \RuntimeException
  @return void
docstring_tokens: Validate that a run process was successful .