You are here

public function QuestionHelperTest::testNoInteraction in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Helper/QuestionHelperTest.php \Symfony\Component\Console\Tests\Helper\QuestionHelperTest::testNoInteraction()

File

vendor/symfony/console/Tests/Helper/QuestionHelperTest.php, line 346

Class

QuestionHelperTest
@group tty

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testNoInteraction() {
  $dialog = new QuestionHelper();
  $question = new Question('Do you have a job?', 'not yet');
  $this
    ->assertEquals('not yet', $dialog
    ->ask($this
    ->createInputInterfaceMock(false), $this
    ->createOutputInterface(), $question));
}