Documentation

QuestionHelperTest extends AbstractQuestionHelperTest
in package

Tags
group

tty

Table of Contents

Methods

answerProvider()  : mixed
getAskConfirmationData()  : mixed
mixedKeysChoiceListAnswerProvider()  : mixed
simpleAnswerProvider()  : mixed
specialCharacterInMultipleChoice()  : mixed
testAmbiguousChoiceFromChoicelist()  : mixed
testAsk()  : mixed
testAskAndValidate()  : mixed
testAskChoice()  : mixed
testAskConfirmation()  : mixed
testAskConfirmationWithCustomTrueAnswer()  : mixed
testAskHiddenResponse()  : mixed
testAskThrowsExceptionOnMissingInput()  : mixed
testAskThrowsExceptionOnMissingInputWithValidator()  : mixed
testAskWithAutocomplete()  : mixed
testAskWithAutocompleteWithNonSequentialKeys()  : mixed
testChoiceFromChoicelistWithMixedKeys()  : mixed
testChoiceOutputFormattingQuestionForUtf8Keys()  : 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
createInputInterfaceMock()  : mixed
createOutputInterface()  : mixed
createStreamableInputInterfaceMock()  : mixed
getInputStream()  : mixed
hasSttyAvailable()  : mixed

Methods

mixedKeysChoiceListAnswerProvider()

public mixedKeysChoiceListAnswerProvider() : mixed

specialCharacterInMultipleChoice()

public specialCharacterInMultipleChoice() : mixed

testAmbiguousChoiceFromChoicelist()

public testAmbiguousChoiceFromChoicelist() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The provided answer is ambiguous. Value should be one of env_2 or env_3.

testAskConfirmation()

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

getAskConfirmationData

testAskConfirmationWithCustomTrueAnswer()

public testAskConfirmationWithCustomTrueAnswer() : mixed

testAskThrowsExceptionOnMissingInput()

public testAskThrowsExceptionOnMissingInput() : mixed
Tags
expectedException

\Symfony\Component\Console\Exception\RuntimeException

expectedExceptionMessage

Aborted

testAskThrowsExceptionOnMissingInputWithValidator()

public testAskThrowsExceptionOnMissingInputWithValidator() : mixed
Tags
expectedException

\Symfony\Component\Console\Exception\RuntimeException

expectedExceptionMessage

Aborted

testAskWithAutocompleteWithNonSequentialKeys()

public testAskWithAutocompleteWithNonSequentialKeys() : mixed

testChoiceFromChoicelistWithMixedKeys()

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

mixedKeysChoiceListAnswerProvider

testChoiceOutputFormattingQuestionForUtf8Keys()

public testChoiceOutputFormattingQuestionForUtf8Keys() : mixed
Tags
requires

function mb_strwidth

testEmptyChoices()

public testEmptyChoices() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

Choice question must have at least 1 choice available.

testLegacyAmbiguousChoiceFromChoicelist()

public testLegacyAmbiguousChoiceFromChoicelist() : mixed
Tags
group

legacy

expectedException

\InvalidArgumentException

expectedExceptionMessage

The provided answer is ambiguous. Value should be one of env_2 or env_3.

testLegacyAskAndValidate()

public testLegacyAskAndValidate() : mixed
Tags
group

legacy

testLegacyAskConfirmation()

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

legacy

dataProvider

getAskConfirmationData

testLegacyAskConfirmationWithCustomTrueAnswer()

public testLegacyAskConfirmationWithCustomTrueAnswer() : mixed
Tags
group

legacy

testLegacyAskHiddenResponse()

public testLegacyAskHiddenResponse() : mixed
Tags
group

legacy

testLegacyAskWithAutocomplete()

public testLegacyAskWithAutocomplete() : mixed
Tags
group

legacy

testLegacyAskWithAutocompleteWithNonSequentialKeys()

public testLegacyAskWithAutocompleteWithNonSequentialKeys() : mixed
Tags
group

legacy

testLegacyChoiceFromChoicelistWithMixedKeys()

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

legacy

dataProvider

mixedKeysChoiceListAnswerProvider

testLegacyChoiceOutputFormattingQuestionForUtf8Keys()

public testLegacyChoiceOutputFormattingQuestionForUtf8Keys() : mixed
Tags
requires

function mb_strwidth

group

legacy

testLegacySelectChoiceFromChoiceList()

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

legacy

dataProvider

answerProvider

testLegacySelectChoiceFromSimpleChoices()

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

legacy

dataProvider

simpleAnswerProvider

testSelectChoiceFromChoiceList()

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

answerProvider

testSelectChoiceFromSimpleChoices()

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

simpleAnswerProvider

testSpecialCharacterChoiceFromMultipleChoiceList()

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

specialCharacterInMultipleChoice

createInputInterfaceMock()

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

createStreamableInputInterfaceMock()

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

getInputStream()

protected getInputStream(mixed $input) : mixed
Parameters
$input : mixed

        
On this page

Search results