Repaired tests for CommandExecutor
This commit is contained in:
parent
f6d1896096
commit
aa83103e87
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace PHPCI\Plugin\Tests\Helper;
|
namespace PHPCI\Plugin\Tests\Helper;
|
||||||
|
|
||||||
use PHPCI\Helper\CommandExecutor;
|
use PHPCI\Helper\UnixCommandExecutor;
|
||||||
use \Prophecy\PhpUnit\ProphecyTestCase;
|
use \Prophecy\PhpUnit\ProphecyTestCase;
|
||||||
|
|
||||||
class CommandExecutorTest extends ProphecyTestCase
|
class CommandExecutorTest extends ProphecyTestCase
|
||||||
|
@ -16,7 +16,7 @@ class CommandExecutorTest extends ProphecyTestCase
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$mockBuildLogger = $this->prophesize('PHPCI\Logging\BuildLogger');
|
$mockBuildLogger = $this->prophesize('PHPCI\Logging\BuildLogger');
|
||||||
$this->testedExecutor = new CommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/");
|
$this->testedExecutor = new UnixCommandExecutor($mockBuildLogger->reveal(), __DIR__ . "/");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetLastOutput_ReturnsOutputOfCommand()
|
public function testGetLastOutput_ReturnsOutputOfCommand()
|
||||||
|
|
Loading…
Reference in a new issue