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