mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-22 16:27:39 +01:00
Added a new class ConsoleApplicationTester, which during E2E tests will create a separate isolated process for the Deployer to run in. This class exposes methods for interacting with stdin and to grab stdout, stderr and status code of finished process.
18 lines
411 B
PHP
18 lines
411 B
PHP
<?php declare(strict_types=1);
|
|
namespace e2e;
|
|
|
|
use Deployer\Exception\Exception;
|
|
use PHPUnit\Framework\TestCase;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
abstract class AbstractE2ETest extends TestCase
|
|
{
|
|
/** @var ConsoleApplicationTester */
|
|
protected $tester;
|
|
|
|
public function setUp(): void
|
|
{
|
|
$this->tester = new ConsoleApplicationTester(__DIR__ . '/../../bin/dep', __DIR__);
|
|
}
|
|
}
|