PHP Class Symfony\Component\Console\Tests\Helper\QuestionHelperTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony

Public Methods

Method Description
answerProvider ( )
getAskConfirmationData ( )
mixedKeysChoiceListAnswerProvider ( )
simpleAnswerProvider ( )
testAmbiguousChoiceFromChoicelist ( )
testAsk ( )
testAskAndValidate ( )
testAskChoice ( )
testAskConfirmation ( $question, $expected, $default = true )
testAskConfirmationWithCustomTrueAnswer ( )
testAskHiddenResponse ( )
testAskThrowsExceptionOnMissingInput ( )
testAskThrowsExceptionOnMissingInputWithValidator ( )
testAskWithAutocomplete ( )
testAskWithAutocompleteWithNonSequentialKeys ( )
testChoiceFromChoicelistWithMixedKeys ( $providedAnswer, $expectedValue )
testChoiceOutputFormattingQuestionForUtf8Keys ( )
testLegacyAmbiguousChoiceFromChoicelist ( )
testLegacyAsk ( )
testLegacyAskAndValidate ( )
testLegacyAskChoice ( )
testLegacyAskConfirmation ( $question, $expected, $default = true )
testLegacyAskConfirmationWithCustomTrueAnswer ( )
testLegacyAskHiddenResponse ( )
testLegacyAskWithAutocomplete ( )
testLegacyAskWithAutocompleteWithNonSequentialKeys ( )
testLegacyChoiceFromChoicelistWithMixedKeys ( $providedAnswer, $expectedValue )
testLegacyChoiceOutputFormattingQuestionForUtf8Keys ( )
testLegacySelectChoiceFromChoiceList ( $providedAnswer, $expectedValue )
testLegacySelectChoiceFromSimpleChoices ( $providedAnswer, $expectedValue )
testNoInteraction ( )
testSelectChoiceFromChoiceList ( $providedAnswer, $expectedValue )
testSelectChoiceFromSimpleChoices ( $providedAnswer, $expectedValue )

Protected Methods

Method Description
createInputInterfaceMock ( $interactive = true )
createOutputInterface ( )
getInputStream ( $input )

Private Methods

Method Description
hasSttyAvailable ( )

Method Details

answerProvider() public method

public answerProvider ( )

createInputInterfaceMock() protected method

protected createInputInterfaceMock ( $interactive = true )

createOutputInterface() protected method

protected createOutputInterface ( )

getAskConfirmationData() public method

getInputStream() protected method

protected getInputStream ( $input )

mixedKeysChoiceListAnswerProvider() public method

simpleAnswerProvider() public method

testAmbiguousChoiceFromChoicelist() public method

testAsk() public method

public testAsk ( )

testAskAndValidate() public method

public testAskAndValidate ( )

testAskChoice() public method

public testAskChoice ( )

testAskConfirmation() public method

public testAskConfirmation ( $question, $expected, $default = true )

testAskConfirmationWithCustomTrueAnswer() public method

testAskHiddenResponse() public method

testAskThrowsExceptionOnMissingInput() public method

testAskThrowsExceptionOnMissingInputWithValidator() public method

testAskWithAutocomplete() public method

testAskWithAutocompleteWithNonSequentialKeys() public method

testChoiceFromChoicelistWithMixedKeys() public method

public testChoiceFromChoicelistWithMixedKeys ( $providedAnswer, $expectedValue )

testChoiceOutputFormattingQuestionForUtf8Keys() public method

testLegacyAmbiguousChoiceFromChoicelist() public method

testLegacyAsk() public method

public testLegacyAsk ( )

testLegacyAskAndValidate() public method

testLegacyAskChoice() public method

public testLegacyAskChoice ( )

testLegacyAskConfirmation() public method

public testLegacyAskConfirmation ( $question, $expected, $default = true )

testLegacyAskConfirmationWithCustomTrueAnswer() public method

testLegacyAskHiddenResponse() public method

testLegacyAskWithAutocomplete() public method

testLegacyAskWithAutocompleteWithNonSequentialKeys() public method

testLegacyChoiceFromChoicelistWithMixedKeys() public method

public testLegacyChoiceFromChoicelistWithMixedKeys ( $providedAnswer, $expectedValue )

testLegacyChoiceOutputFormattingQuestionForUtf8Keys() public method

testLegacySelectChoiceFromChoiceList() public method

public testLegacySelectChoiceFromChoiceList ( $providedAnswer, $expectedValue )

testLegacySelectChoiceFromSimpleChoices() public method

public testLegacySelectChoiceFromSimpleChoices ( $providedAnswer, $expectedValue )

testNoInteraction() public method

public testNoInteraction ( )

testSelectChoiceFromChoiceList() public method

public testSelectChoiceFromChoiceList ( $providedAnswer, $expectedValue )

testSelectChoiceFromSimpleChoices() public method

public testSelectChoiceFromSimpleChoices ( $providedAnswer, $expectedValue )