class UnishProcessFailedError

  1. 8.0.x tests/Unish/UnishProcessFailedError.php UnishProcessFailedError
  2. 7.x tests/Unish/UnishProcessFailedError.php UnishProcessFailedError
  3. master tests/Unish/UnishProcessFailedError.php UnishProcessFailedError

Namespace

Unish

Hierarchy

Expanded class hierarchy of UnishProcessFailedError

Members

Contains filters are case sensitive

File

tests/Unish/UnishProcessFailedError.php, line 7

View source
class UnishProcessFailedError extends \PHPUnit_Framework_AssertionFailedError {
  public function __construct($message, Process $process) {
    if ($output = $process->getOutput()) {
      $message .= "\n\nCommand output:\n" . $output;
    }
    if ($stderr = $process->getErrorOutput()) {
      $message .= "\n\nCommand stderr:\n" . $stderr;
    }

    parent::__construct($message);
  }
}