public function checkOutputForProblems()
    {
        if (!$this->isStarted()) {
            throw new \LogicException(sprintf('Process must be started before calling %s.', __FUNCTION__));
        }
        if ($this->isOutputDisabled()) {
            throw new \LogicException('Output has been disabled, cannot verify if Moodle script ran without problems');
        }
        if ($this->hasPhpErrorMessages($this->getErrorOutput())) {
            throw new MoodlePhpException($this);
        }
        if ($this->hasDebuggingMessages($this->getOutput())) {
            throw new MoodleDebugException($this);
        }
    }
public function checkOutputForProblems()
    {
        if (!$this->isStarted()) {
            throw new \LogicException(sprintf('Process must be started before calling %s.', __FUNCTION__));
        }
        if ($this->isOutputDisabled()) {
            throw new \LogicException('Output has been disabled, cannot verify if Moodle script ran without problems');
        }
        if ($this->hasPhpErrorMessages($this->getErrorOutput())) {
            throw new MoodlePhpException($this);
        }
        if ($this->hasDebuggingMessages($this->getOutput())) {
            throw new MoodleDebugException($this);
        }
    }
public function checkOutputForProblems ( ) { if ( ! $ this -> isStarted ( ) ) { throw new \ LogicException ( sprintf ( 'Process must be started before calling %s.' , __FUNCTION__ ) ) ; } if ( $ this -> isOutputDisabled ( ) ) { throw new \ LogicException ( 'Output has been disabled, cannot verify if Moodle script ran without problems' ) ; } if ( $ this -> hasPhpErrorMessages ( $ this -> getErrorOutput ( ) ) ) { throw new MoodlePhpException ( $ this ) ; } if ( $ this -> hasDebuggingMessages ( $ this -> getOutput ( ) ) ) { throw new MoodleDebugException ( $ this ) ; } }
Checks to make sure that there are no problems with the output.

Problems would include PHP errors or Moodle debugging messages.
Checks to make sure that there are no problems with the output .