From 31d9486ab2b251dc332e906bbe966ae77f0fe167 Mon Sep 17 00:00:00 2001 From: Sam Schmidt Date: Thu, 17 Mar 2016 16:11:22 -0400 Subject: [PATCH] Add tty option so that colors come through. --- src/LinusShops/Prophet/Command.php | 3 ++- src/LinusShops/Prophet/Commands/Run.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LinusShops/Prophet/Command.php b/src/LinusShops/Prophet/Command.php index 0303d86..006b11a 100644 --- a/src/LinusShops/Prophet/Command.php +++ b/src/LinusShops/Prophet/Command.php @@ -12,9 +12,10 @@ class Command extends \Symfony\Component\Console\Command\Command { - protected function shell($command, $workingDirectory = '.') + protected function shell($command, $workingDirectory = '.', $asTty = false) { $process = new Process($command, $workingDirectory, null, null, null); + $process->setTty($asTty); return $process->run(function ($type, $buffer) { echo $buffer; }) == 0; diff --git a/src/LinusShops/Prophet/Commands/Run.php b/src/LinusShops/Prophet/Commands/Run.php index 5a8f7c7..451a776 100644 --- a/src/LinusShops/Prophet/Commands/Run.php +++ b/src/LinusShops/Prophet/Commands/Run.php @@ -99,7 +99,7 @@ protected function runTestFramework($framework, $modulePath, $magentoPath) } $cmd = "php {$path} ".PROPHET_ROOT_DIR." {$modulePath} {$magentoPath}"; - $this->shell($cmd); + $this->shell($cmd, '.', true); return true; }