terminals are not interactive on Travis

You cannot assume that the input is always interactive when the tests
for the `Application` class are executed. The expected value depends
on the terminal being interactive.
This commit is contained in:
Christian Flothmann 2014-12-11 21:21:50 +01:00
parent 7e573f4f8a
commit d58ac9ec08

View File

@ -972,7 +972,6 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$tester = new ApplicationTester($application); $tester = new ApplicationTester($application);
$tester->run(array('command' => 'help')); $tester->run(array('command' => 'help'));
$this->assertTrue($tester->getInput()->isInteractive());
$this->assertFalse($tester->getInput()->hasParameterOption(array('--no-interaction', '-n'))); $this->assertFalse($tester->getInput()->hasParameterOption(array('--no-interaction', '-n')));
$inputStream = $application->getHelperSet()->get('question')->getInputStream(); $inputStream = $application->getHelperSet()->get('question')->getInputStream();