Remove useless testCanCheckIfTerminalIsInteractive test case

This commit is contained in:
Gabriel Ostrolucký 2019-10-06 21:52:09 +02:00
parent 14ccaf503e
commit a84e4e021a
No known key found for this signature in database
GPG Key ID: 0B618B95BA22CEEF
1 changed files with 0 additions and 17 deletions

View File

@ -1587,23 +1587,6 @@ class ApplicationTest extends TestCase
$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();