Symfony\Component\Console\Tests\Helper\SymfonyQuestionHelperTest::testAskEscapeDefaultValue PHP Method

testAskEscapeDefaultValue() public method

    public function testAskEscapeDefaultValue()
    {
        $helper = new SymfonyQuestionHelper();
        $input = $this->createStreamableInputInterfaceMock($this->getInputStream('\\'));
        $helper->ask($input, $output = $this->createOutputInterface(), new Question('Can I have a backslash?', '\\'));

        $this->assertOutputContains('Can I have a backslash? [\]', $output);
    }