Remove useless testCanCheckIfTerminalIsInteractive test case
This commit is contained in:
parent
14ccaf503e
commit
a84e4e021a
|
@ -1587,23 +1587,6 @@ class ApplicationTest extends TestCase
|
||||||
$this->assertStringContainsString('The foo:bar command', $tester->getDisplay());
|
$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()
|
public function testRunLazyCommandService()
|
||||||
{
|
{
|
||||||
$container = new ContainerBuilder();
|
$container = new ContainerBuilder();
|
||||||
|
|
Reference in New Issue