public function LegacyDialogHelperTest::testNoInteraction in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/LegacyDialogHelperTest.php \Symfony\Component\Console\Tests\Helper\LegacyDialogHelperTest::testNoInteraction()
File
- vendor/
symfony/ console/ Tests/ Helper/ LegacyDialogHelperTest.php, line 163
Class
- LegacyDialogHelperTest
- @group legacy
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testNoInteraction() {
$dialog = new DialogHelper();
$input = new ArrayInput(array());
$input
->setInteractive(false);
$dialog
->setInput($input);
$this
->assertEquals('not yet', $dialog
->ask($this
->getOutputStream(), 'Do you have a job?', 'not yet'));
}