Skip to content

Commit

Permalink
Remove useless testCanCheckIfTerminalIsInteractive test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Oct 6, 2019
1 parent 90d697c commit 4727d7f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Tests/ApplicationTest.php
Expand Up @@ -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();
Expand Down

0 comments on commit 4727d7f

Please sign in to comment.