From a84e4e021a31fdd125848552adbba1a6afc3c8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Sun, 6 Oct 2019 21:52:09 +0200 Subject: [PATCH] Remove useless testCanCheckIfTerminalIsInteractive test case --- .../Component/Console/Tests/ApplicationTest.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index c7e84952653a..d61418f37ba4 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -1587,23 +1587,6 @@ public function testSetRunCustomSingleCommand() $this->assertStringContainsString('The foo:bar command', $tester->getDisplay()); } - /** - * @requires function posix_isatty - */ - public function testCanCheckIfTerminalIsInteractive() - { - $application = new CustomDefaultCommandApplication(); - $application->setAutoExit(false); - - $tester = new ApplicationTester($application); - $tester->run(['command' => 'help']); - - $this->assertFalse($tester->getInput()->hasParameterOption(['--no-interaction', '-n'])); - - $inputStream = $tester->getInput()->getStream(); - $this->assertEquals($tester->getInput()->isInteractive(), @posix_isatty($inputStream)); - } - public function testRunLazyCommandService() { $container = new ContainerBuilder();