Yaffs site version 1.1
[yaffs-website] / vendor / drush / drush / tests / Unish / UnishProcessFailedError.php
1 <?php
2
3 namespace Unish;
4
5 use Symfony\Component\Process\Process;
6
7 class UnishProcessFailedError extends \PHPUnit_Framework_AssertionFailedError {
8   public function __construct($message, Process $process) {
9     if ($output = $process->getOutput()) {
10       $message .= "\n\nCommand output:\n" . $output;
11     }
12     if ($stderr = $process->getErrorOutput()) {
13       $message .= "\n\nCommand stderr:\n" . $stderr;
14     }
15
16     parent::__construct($message);
17   }
18 }