From d26568b962bd0d9903550ba9e23926e1ad73e948 Mon Sep 17 00:00:00 2001 From: "steve.brazier" Date: Thu, 12 Dec 2013 14:16:14 +0000 Subject: [PATCH] fix issue #218 by blanking last output before executing new command. --- PHPCI/Helper/CommandExecutor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PHPCI/Helper/CommandExecutor.php b/PHPCI/Helper/CommandExecutor.php index 0515f83c..b7fc3494 100644 --- a/PHPCI/Helper/CommandExecutor.php +++ b/PHPCI/Helper/CommandExecutor.php @@ -45,6 +45,8 @@ class CommandExecutor */ public function executeCommand($args = array()) { + $this->lastOutput = array(); + $command = call_user_func_array('sprintf', $args); if ($this->quiet) {