From e7bca0636377c11862a4092f15f0b25930952b29 Mon Sep 17 00:00:00 2001 From: Corpsee Date: Sun, 9 Mar 2014 01:46:03 +0700 Subject: [PATCH] Fixed unittests on windows --- PHPCI/Helper/CommandExecutor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PHPCI/Helper/CommandExecutor.php b/PHPCI/Helper/CommandExecutor.php index 5c64dd45..9b7fe442 100644 --- a/PHPCI/Helper/CommandExecutor.php +++ b/PHPCI/Helper/CommandExecutor.php @@ -75,6 +75,10 @@ class CommandExecutor $status = 0; exec($command, $this->lastOutput, $status); + foreach ($this->lastOutput as &$lastOutput) { + $lastOutput = trim($lastOutput, '"'); + } + if (!empty($this->lastOutput) && ($this->verbose|| $status != 0)) { $this->logger->log($this->lastOutput); }