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
                )
            );
        }
    }
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
                )
            );
        }
    }
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 ) ) ; } }
Validate that a run process was successful.

@throws \RuntimeException
@return void
Validate that a run process was successful .