Merge pull request #412 from corpsee/fixes-for-windows

Fixed test for CommandExecutor
This commit is contained in:
Steve B 2014-05-11 18:48:07 +01:00
commit b53d5ac31f

View file

@ -2,13 +2,13 @@
namespace PHPCI\Plugin\Tests\Helper;
use PHPCI\Helper\CommandExecutor;
use PHPCI\Helper\UnixCommandExecutor;
use \Prophecy\PhpUnit\ProphecyTestCase;
class CommandExecutorTest extends ProphecyTestCase
{
/**
* @var CommandExecutor
* @var UnixCommandExecutor
*/
protected $testedExecutor;
@ -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()