Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • FormatterHelperTest
  • HelperSetTest
  • HelperTest
  • LegacyDialogHelperTest
  • LegacyProgressHelperTest
  • LegacyTableHelperTest
  • ProcessHelperTest
  • ProgressBarTest
  • ProgressIndicatorTest
  • QuestionHelperTest
  • SymfonyQuestionHelperTest
  • TableStyleTest
  • TableTest
  • Overview
  • Namespace
  • Class

Class QuestionHelperTest

PHPUnit_Framework_TestCase
Extended by Symfony\Component\Console\Tests\Helper\QuestionHelperTest
Namespace: Symfony\Component\Console\Tests\Helper
Group: tty
Located at Tests/Helper/QuestionHelperTest.php
Methods summary
public
# testAskChoice( )
public
# testAsk( )
public
# testAskWithAutocomplete( )
public
# testAskWithAutocompleteWithNonSequentialKeys( )
public
# testAskHiddenResponse( )
public
# testAskConfirmation( $question, $expected, $default = true )

Dataprovider

getAskConfirmationData
public
# getAskConfirmationData( )
public
# testAskConfirmationWithCustomTrueAnswer( )
public
# testAskAndValidate( )
public
# testSelectChoiceFromSimpleChoices( $providedAnswer, $expectedValue )

Dataprovider

simpleAnswerProvider
public
# simpleAnswerProvider( )
public
# testChoiceFromChoicelistWithMixedKeys( $providedAnswer, $expectedValue )

Dataprovider

mixedKeysChoiceListAnswerProvider
public
# mixedKeysChoiceListAnswerProvider( )
public
# testSelectChoiceFromChoiceList( $providedAnswer, $expectedValue )

Dataprovider

answerProvider
public
# testAmbiguousChoiceFromChoicelist( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

The provided answer is ambiguous. Value should be one of env_2 or env_3.
public
# answerProvider( )
public
# testNoInteraction( )
public
# testChoiceOutputFormattingQuestionForUtf8Keys( )

Requires

function mb_strwidth
public
# testAskThrowsExceptionOnMissingInput( )

Expectedexception

\Symfony\Component\Console\Exception\RuntimeException

Expectedexceptionmessage

Aborted
public
# testAskThrowsExceptionOnMissingInputWithValidator( )

Expectedexception

\Symfony\Component\Console\Exception\RuntimeException

Expectedexceptionmessage

Aborted
protected
# getInputStream( $input )
protected
# createOutputInterface( )
protected
# createInputInterfaceMock( $interactive = true )
Peridot API documentation generated by ApiGen