Disable test

This commit is contained in:
Anton Medvedev 2021-10-13 19:48:44 +02:00
parent 60d6297b95
commit 446f481fb1

View File

@ -9,47 +9,48 @@ namespace Deployer;
use Symfony\Component\Console\Output\Output; use Symfony\Component\Console\Output\Output;
class NamedArgumentsTest extends AbstractTest // TODO: Wait until Deployer 7.1 with only php8 supports.
{ //class NamedArgumentsTest extends AbstractTest
const RECIPE = __DIR__ . '/recipe/named_arguments.php'; //{
// const RECIPE = __DIR__ . '/recipe/named_arguments.php';
public function testRunWithNamedArguments() //
{ // public function testRunWithNamedArguments()
$this->init(self::RECIPE); // {
$this->tester->run(['named_arguments', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]); // $this->init(self::RECIPE);
// $this->tester->run(['named_arguments', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]);
$display = $this->tester->getDisplay(); //
self::assertEquals(0, $this->tester->getStatusCode(), $display); // $display = $this->tester->getDisplay();
self::assertStringContainsString('Hello, world!', $display); // self::assertEquals(0, $this->tester->getStatusCode(), $display);
} // self::assertStringContainsString('Hello, world!', $display);
// }
public function testRunWithOptions() //
{ // public function testRunWithOptions()
$this->init(self::RECIPE); // {
$this->tester->run(['options', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]); // $this->init(self::RECIPE);
// $this->tester->run(['options', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]);
$display = $this->tester->getDisplay(); //
self::assertEquals(0, $this->tester->getStatusCode(), $display); // $display = $this->tester->getDisplay();
self::assertStringContainsString('Hello, Anton!', $display); // self::assertEquals(0, $this->tester->getStatusCode(), $display);
} // self::assertStringContainsString('Hello, Anton!', $display);
// }
public function testRunWithOptionsWithNamedArguments() //
{ // public function testRunWithOptionsWithNamedArguments()
$this->init(self::RECIPE); // {
$this->tester->run(['options_with_named_arguments', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]); // $this->init(self::RECIPE);
// $this->tester->run(['options_with_named_arguments', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]);
$display = $this->tester->getDisplay(); //
self::assertEquals(0, $this->tester->getStatusCode(), $display); // $display = $this->tester->getDisplay();
self::assertStringContainsString('Hello, override!', $display); // self::assertEquals(0, $this->tester->getStatusCode(), $display);
} // self::assertStringContainsString('Hello, override!', $display);
// }
public function testRunLocallyWithNamedArguments() //
{ // public function testRunLocallyWithNamedArguments()
$this->init(self::RECIPE); // {
$this->tester->run(['run_locally_named_arguments', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]); // $this->init(self::RECIPE);
// $this->tester->run(['run_locally_named_arguments', '-f' => self::RECIPE], ['verbosity' => Output::VERBOSITY_VERBOSE]);
$display = $this->tester->getDisplay(); //
self::assertEquals(0, $this->tester->getStatusCode(), $display); // $display = $this->tester->getDisplay();
self::assertStringContainsString('Hello, world!', $display); // self::assertEquals(0, $this->tester->getStatusCode(), $display);
} // self::assertStringContainsString('Hello, world!', $display);
} // }
//}