You are here

protected function QuestionHelperTest::getInputStream 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::getInputStream()
11 calls to QuestionHelperTest::getInputStream()
QuestionHelperTest::testAmbiguousChoiceFromChoicelist in vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
@expectedException \InvalidArgumentException @expectedExceptionMessage The provided answer is ambiguous. Value should be one of env_2 or env_3.
QuestionHelperTest::testAsk in vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
QuestionHelperTest::testAskAndValidate in vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
QuestionHelperTest::testAskChoice in vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
QuestionHelperTest::testAskConfirmation in vendor/symfony/console/Tests/Helper/QuestionHelperTest.php
@dataProvider getAskConfirmationData

... See full list

File

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

Class

QuestionHelperTest
@group tty

Namespace

Symfony\Component\Console\Tests\Helper

Code

protected function getInputStream($input) {
  $stream = fopen('php://memory', 'r+', false);
  fwrite($stream, $input);
  rewind($stream);
  return $stream;
}