You are here

public function LegacyDialogHelperTest::testAskHiddenResponse in Zircon Profile 8

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

@group tty

File

vendor/symfony/console/Tests/Helper/LegacyDialogHelperTest.php, line 104

Class

LegacyDialogHelperTest
@group legacy

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testAskHiddenResponse() {
  if ('\\' === DIRECTORY_SEPARATOR) {
    $this
      ->markTestSkipped('This test is not supported on Windows');
  }
  $dialog = new DialogHelper();
  $dialog
    ->setInputStream($this
    ->getInputStream("8AM\n"));
  $this
    ->assertEquals('8AM', $dialog
    ->askHiddenResponse($this
    ->getOutputStream(), 'What time is it?'));
}