Documentation

QuestionHelperTest extends AbstractQuestionHelperTest
in package

Tags
group

tty

Table of Contents

answerProvider()  : mixed
getAskConfirmationData()  : mixed
getInputs()  : mixed
mixedKeysChoiceListAnswerProvider()  : mixed
simpleAnswerProvider()  : mixed
specialCharacterInMultipleChoice()  : mixed
testAmbiguousChoiceFromChoicelist()  : mixed
testAsk()  : mixed
testAskAndValidate()  : mixed
testAskChoice()  : mixed
testAskChoiceNonInteractive()  : mixed
testAskConfirmation()  : mixed
testAskConfirmationWithCustomTrueAnswer()  : mixed
testAskHiddenResponse()  : mixed
testAskThrowsExceptionOnMissingInput()  : mixed
testAskThrowsExceptionOnMissingInputForChoiceQuestion()  : mixed
testAskThrowsExceptionOnMissingInputWithValidator()  : mixed
testAskWithAutocomplete()  : mixed
testAskWithAutocompleteWithExactMatch()  : mixed
testAskWithAutocompleteWithMultiByteCharacter()  : mixed
testAskWithAutocompleteWithNonSequentialKeys()  : mixed
testAutocompleteWithTrailingBackslash()  : mixed
testChoiceFromChoicelistWithMixedKeys()  : mixed
testChoiceOutputFormattingQuestionForUtf8Keys()  : mixed
testDisableStty()  : mixed
testEmptyChoices()  : mixed
testLegacyAmbiguousChoiceFromChoicelist()  : mixed
testLegacyAsk()  : mixed
testLegacyAskAndValidate()  : mixed
testLegacyAskChoice()  : mixed
testLegacyAskConfirmation()  : mixed
testLegacyAskConfirmationWithCustomTrueAnswer()  : mixed
testLegacyAskHiddenResponse()  : mixed
testLegacyAskWithAutocomplete()  : mixed
testLegacyAskWithAutocompleteWithNonSequentialKeys()  : mixed
testLegacyChoiceFromChoicelistWithMixedKeys()  : mixed
testLegacyChoiceOutputFormattingQuestionForUtf8Keys()  : mixed
testLegacySelectChoiceFromChoiceList()  : mixed
testLegacySelectChoiceFromSimpleChoices()  : mixed
testNoInteraction()  : mixed
testSelectChoiceFromChoiceList()  : mixed
testSelectChoiceFromSimpleChoices()  : mixed
testSpecialCharacterChoiceFromMultipleChoiceList()  : mixed
testTraversableAutocomplete()  : mixed
testTraversableMultiselectAutocomplete()  : mixed
createInputInterfaceMock()  : mixed
createOutputInterface()  : mixed
createStreamableInputInterfaceMock()  : mixed
getInputStream()  : mixed

Methods

getAskConfirmationData()

public getAskConfirmationData() : mixed
Return values
mixed —

mixedKeysChoiceListAnswerProvider()

public mixedKeysChoiceListAnswerProvider() : mixed
Return values
mixed —

simpleAnswerProvider()

public simpleAnswerProvider() : mixed
Return values
mixed —

specialCharacterInMultipleChoice()

public specialCharacterInMultipleChoice() : mixed
Return values
mixed —

testAmbiguousChoiceFromChoicelist()

public testAmbiguousChoiceFromChoicelist() : mixed
Return values
mixed —

testAskAndValidate()

public testAskAndValidate() : mixed
Return values
mixed —

testAskChoiceNonInteractive()

public testAskChoiceNonInteractive() : mixed
Return values
mixed —

testAskConfirmation()

public testAskConfirmation(mixed $question, mixed $expected[, mixed $default = true ]) : mixed
Parameters
$question : mixed
$expected : mixed
$default : mixed = true
Tags
dataProvider

getAskConfirmationData

Return values
mixed —

testAskConfirmationWithCustomTrueAnswer()

public testAskConfirmationWithCustomTrueAnswer() : mixed
Return values
mixed —

testAskHiddenResponse()

public testAskHiddenResponse() : mixed
Return values
mixed —

testAskThrowsExceptionOnMissingInput()

public testAskThrowsExceptionOnMissingInput() : mixed
Return values
mixed —

testAskThrowsExceptionOnMissingInputForChoiceQuestion()

public testAskThrowsExceptionOnMissingInputForChoiceQuestion() : mixed
Return values
mixed —

testAskThrowsExceptionOnMissingInputWithValidator()

public testAskThrowsExceptionOnMissingInputWithValidator() : mixed
Return values
mixed —

testAskWithAutocomplete()

public testAskWithAutocomplete() : mixed
Return values
mixed —

testAskWithAutocompleteWithExactMatch()

public testAskWithAutocompleteWithExactMatch() : mixed
Return values
mixed —

testAskWithAutocompleteWithMultiByteCharacter()

public testAskWithAutocompleteWithMultiByteCharacter(mixed $character) : mixed
Parameters
$character : mixed
Tags
dataProvider

getInputs

Return values
mixed —

testAskWithAutocompleteWithNonSequentialKeys()

public testAskWithAutocompleteWithNonSequentialKeys() : mixed
Return values
mixed —

testAutocompleteWithTrailingBackslash()

public testAutocompleteWithTrailingBackslash() : mixed
Return values
mixed —

testChoiceFromChoicelistWithMixedKeys()

public testChoiceFromChoicelistWithMixedKeys(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
dataProvider

mixedKeysChoiceListAnswerProvider

Return values
mixed —

testChoiceOutputFormattingQuestionForUtf8Keys()

public testChoiceOutputFormattingQuestionForUtf8Keys() : mixed
Tags
requires

function mb_strwidth

Return values
mixed —

testLegacyAmbiguousChoiceFromChoicelist()

public testLegacyAmbiguousChoiceFromChoicelist() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAsk()

public testLegacyAsk() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAskAndValidate()

public testLegacyAskAndValidate() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAskChoice()

public testLegacyAskChoice() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAskConfirmation()

public testLegacyAskConfirmation(mixed $question, mixed $expected[, mixed $default = true ]) : mixed
Parameters
$question : mixed
$expected : mixed
$default : mixed = true
Tags
group

legacy

dataProvider

getAskConfirmationData

Return values
mixed —

testLegacyAskConfirmationWithCustomTrueAnswer()

public testLegacyAskConfirmationWithCustomTrueAnswer() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAskHiddenResponse()

public testLegacyAskHiddenResponse() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAskWithAutocomplete()

public testLegacyAskWithAutocomplete() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyAskWithAutocompleteWithNonSequentialKeys()

public testLegacyAskWithAutocompleteWithNonSequentialKeys() : mixed
Tags
group

legacy

Return values
mixed —

testLegacyChoiceFromChoicelistWithMixedKeys()

public testLegacyChoiceFromChoicelistWithMixedKeys(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
group

legacy

dataProvider

mixedKeysChoiceListAnswerProvider

Return values
mixed —

testLegacyChoiceOutputFormattingQuestionForUtf8Keys()

public testLegacyChoiceOutputFormattingQuestionForUtf8Keys() : mixed
Tags
requires

function mb_strwidth

group

legacy

Return values
mixed —

testLegacySelectChoiceFromChoiceList()

public testLegacySelectChoiceFromChoiceList(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
group

legacy

dataProvider

answerProvider

Return values
mixed —

testLegacySelectChoiceFromSimpleChoices()

public testLegacySelectChoiceFromSimpleChoices(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
group

legacy

dataProvider

simpleAnswerProvider

Return values
mixed —

testSelectChoiceFromChoiceList()

public testSelectChoiceFromChoiceList(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
dataProvider

answerProvider

Return values
mixed —

testSelectChoiceFromSimpleChoices()

public testSelectChoiceFromSimpleChoices(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
dataProvider

simpleAnswerProvider

Return values
mixed —

testSpecialCharacterChoiceFromMultipleChoiceList()

public testSpecialCharacterChoiceFromMultipleChoiceList(mixed $providedAnswer, mixed $expectedValue) : mixed
Parameters
$providedAnswer : mixed
$expectedValue : mixed
Tags
dataProvider

specialCharacterInMultipleChoice

Return values
mixed —

testTraversableAutocomplete()

public testTraversableAutocomplete() : mixed
Return values
mixed —

testTraversableMultiselectAutocomplete()

public testTraversableMultiselectAutocomplete() : mixed
Return values
mixed —

createInputInterfaceMock()

protected createInputInterfaceMock([mixed $interactive = true ]) : mixed
Parameters
$interactive : mixed = true
Return values
mixed —

createOutputInterface()

protected createOutputInterface() : mixed
Return values
mixed —

createStreamableInputInterfaceMock()

protected createStreamableInputInterfaceMock([mixed $stream = null ][, mixed $interactive = true ]) : mixed
Parameters
$stream : mixed = null
$interactive : mixed = true
Return values
mixed —

getInputStream()

protected getInputStream(mixed $input) : mixed
Parameters
$input : mixed
Return values
mixed —

Search results