TYPO3  7.6
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
QuestionHelperTest Class Reference
Inheritance diagram for QuestionHelperTest:

Public Member Functions

 testAskChoice ()
 
 testAsk ()
 
 testAskWithAutocomplete ()
 
 testAskHiddenResponse ()
 
 testAskConfirmation ($question, $expected, $default=true)
 
 getAskConfirmationData ()
 
 testAskConfirmationWithCustomTrueAnswer ()
 
 testAskAndValidate ()
 
 testSelectChoiceFromSimpleChoices ($providedAnswer, $expectedValue)
 
 simpleAnswerProvider ()
 
 testChoiceFromChoicelistWithMixedKeys ($providedAnswer, $expectedValue)
 
 mixedKeysChoiceListAnswerProvider ()
 
 testSelectChoiceFromChoiceList ($providedAnswer, $expectedValue)
 
 testAmbiguousChoiceFromChoicelist ()
 
 answerProvider ()
 
 testNoInteraction ()
 

Protected Member Functions

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

Private Member Functions

 hasSttyAvailable ()
 

Detailed Description

tty

Definition at line 25 of file QuestionHelperTest.php.

Member Function Documentation

answerProvider ( )

Definition at line 336 of file QuestionHelperTest.php.

createInputInterfaceMock (   $interactive = true)
protected
createOutputInterface ( )
protected
getAskConfirmationData ( )

Definition at line 164 of file QuestionHelperTest.php.

getInputStream (   $input)
protected
hasSttyAvailable ( )
private

Definition at line 377 of file QuestionHelperTest.php.

Referenced by QuestionHelperTest\testAskWithAutocomplete().

mixedKeysChoiceListAnswerProvider ( )

Definition at line 278 of file QuestionHelperTest.php.

simpleAnswerProvider ( )

Definition at line 242 of file QuestionHelperTest.php.

testAmbiguousChoiceFromChoicelist ( )

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

Definition at line 317 of file QuestionHelperTest.php.

References QuestionHelperTest\createInputInterfaceMock(), QuestionHelperTest\createOutputInterface(), and QuestionHelperTest\getInputStream().

testAsk ( )
testAskAndValidate ( )
testAskChoice ( )
testAskConfirmation (   $question,
  $expected,
  $default = true 
)

getAskConfirmationData

Definition at line 155 of file QuestionHelperTest.php.

References QuestionHelperTest\createOutputInterface(), and QuestionHelperTest\getInputStream().

testAskConfirmationWithCustomTrueAnswer ( )
testAskHiddenResponse ( )
testAskWithAutocomplete ( )
testChoiceFromChoicelistWithMixedKeys (   $providedAnswer,
  $expectedValue 
)
testNoInteraction ( )
testSelectChoiceFromChoiceList (   $providedAnswer,
  $expectedValue 
)
testSelectChoiceFromSimpleChoices (   $providedAnswer,
  $expectedValue 
)