From 446f481fb12a5f15c087c12351f8eb6284ad9fbc Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Wed, 13 Oct 2021 19:48:44 +0200 Subject: [PATCH] Disable test --- tests/joy/NamedArgumentsTest.php | 89 ++++++++++++++++---------------- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/tests/joy/NamedArgumentsTest.php b/tests/joy/NamedArgumentsTest.php index 35180298..7b19a0d9 100644 --- a/tests/joy/NamedArgumentsTest.php +++ b/tests/joy/NamedArgumentsTest.php @@ -9,47 +9,48 @@ namespace Deployer; use Symfony\Component\Console\Output\Output; -class NamedArgumentsTest extends AbstractTest -{ - const RECIPE = __DIR__ . '/recipe/named_arguments.php'; - - public function testRunWithNamedArguments() - { - $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); - self::assertStringContainsString('Hello, world!', $display); - } - - public function testRunWithOptions() - { - $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); - self::assertStringContainsString('Hello, Anton!', $display); - } - - public function testRunWithOptionsWithNamedArguments() - { - $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); - self::assertStringContainsString('Hello, override!', $display); - } - - public function testRunLocallyWithNamedArguments() - { - $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); - self::assertStringContainsString('Hello, world!', $display); - } -} +// TODO: Wait until Deployer 7.1 with only php8 supports. +//class NamedArgumentsTest extends AbstractTest +//{ +// const RECIPE = __DIR__ . '/recipe/named_arguments.php'; +// +// public function testRunWithNamedArguments() +// { +// $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); +// self::assertStringContainsString('Hello, world!', $display); +// } +// +// public function testRunWithOptions() +// { +// $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); +// self::assertStringContainsString('Hello, Anton!', $display); +// } +// +// public function testRunWithOptionsWithNamedArguments() +// { +// $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); +// self::assertStringContainsString('Hello, override!', $display); +// } +// +// public function testRunLocallyWithNamedArguments() +// { +// $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); +// self::assertStringContainsString('Hello, world!', $display); +// } +//}