From 3fe7c18e0902d2a9665084012aeec24bdbe1b764 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Mon, 12 May 2014 00:43:41 +0700 Subject: [PATCH 1/2] Repaired tests for CommandExecutor --- Tests/PHPCI/Helper/CommandExecutorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/PHPCI/Helper/CommandExecutorTest.php b/Tests/PHPCI/Helper/CommandExecutorTest.php index ae6809d5..f911b994 100644 --- a/Tests/PHPCI/Helper/CommandExecutorTest.php +++ b/Tests/PHPCI/Helper/CommandExecutorTest.php @@ -2,7 +2,7 @@ namespace PHPCI\Plugin\Tests\Helper; -use PHPCI\Helper\CommandExecutor; +use PHPCI\Helper\UnixCommandExecutor; use \Prophecy\PhpUnit\ProphecyTestCase; class CommandExecutorTest extends ProphecyTestCase @@ -16,7 +16,7 @@ class CommandExecutorTest extends ProphecyTestCase { parent::setUp(); $mockBuildLogger = $this->prophesize('PHPCI\Logging\BuildLogger'); - $this->testedExecutor = new CommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/"); + $this->testedExecutor = new UnixCommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/"); } public function testGetLastOutput_ReturnsOutputOfCommand() From 6a1732c5b7d1a271f4a18506ba84d76a73373080 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Mon, 12 May 2014 00:44:13 +0700 Subject: [PATCH 2/2] Fixed annotation --- Tests/PHPCI/Helper/CommandExecutorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/PHPCI/Helper/CommandExecutorTest.php b/Tests/PHPCI/Helper/CommandExecutorTest.php index f911b994..8ae045dc 100644 --- a/Tests/PHPCI/Helper/CommandExecutorTest.php +++ b/Tests/PHPCI/Helper/CommandExecutorTest.php @@ -8,7 +8,7 @@ use \Prophecy\PhpUnit\ProphecyTestCase; class CommandExecutorTest extends ProphecyTestCase { /** - * @var CommandExecutor + * @var UnixCommandExecutor */ protected $testedExecutor;