\Symfony\Component\Console\TestsApplicationTest

Summary

Methods
Properties
Constants
setUpBeforeClass()
testConstructor()
testSetGetName()
testSetGetVersion()
testGetLongVersion()
testHelp()
testAll()
testAllWithCommandLoader()
testRegister()
testAdd()
testAddCommandWithEmptyConstructor()
testHasGet()
testHasGetWithCommandLoader()
testSilentHelp()
testGetInvalidCommand()
testGetNamespaces()
testFindNamespace()
testFindNamespaceWithSubnamespaces()
testFindAmbiguousNamespace()
testFindNonAmbiguous()
testFindInvalidNamespace()
testFindUniqueNameButNamespaceName()
testFind()
testFindCaseSensitiveFirst()
testFindCaseInsensitiveAsFallback()
testFindCaseInsensitiveSuggestions()
testFindWithCommandLoader()
testFindWithAmbiguousAbbreviations()
provideAmbiguousAbbreviations()
testFindCommandEqualNamespace()
testFindCommandWithAmbiguousNamespacesButUniqueName()
testFindCommandWithMissingNamespace()
testFindAlternativeExceptionMessageSingle()
testDontRunAlternativeNamespaceName()
testCanRunAlternativeCommandName()
testDontRunAlternativeCommandName()
provideInvalidCommandNamesSingle()
testFindAlternativeExceptionMessageMultiple()
testFindAlternativeCommands()
testFindAlternativeCommandsWithAnAlias()
testFindAlternativeNamespace()
testFindAlternativesOutput()
testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()
testFindWithDoubleColonInNameThrowsException()
testSetCatchExceptions()
testAutoExitSetting()
testRenderException()
testRenderExceptionWithDoubleWidthCharacters()
testRenderExceptionEscapesLines()
testRenderExceptionLineBreaks()
testRun()
testVerboseValueNotBreakArguments()
testRunReturnsIntegerExitCode()
testRunDispatchesIntegerExitCode()
testRunReturnsExitCodeOneForExceptionCodeZero()
testRunDispatchesExitCodeOneForExceptionCodeZero()
testAddingOptionWithDuplicateShortcut()
testAddingAlreadySetDefinitionElementData()
getAddingAlreadySetDefinitionElementData()
testGetDefaultHelperSetReturnsDefaultValues()
testAddingSingleHelperSetOverwritesDefaultValues()
testOverwritingDefaultHelperSetOverwritesDefaultValues()
testGetDefaultInputDefinitionReturnsDefaultValues()
testOverwritingDefaultInputDefinitionOverwritesDefaultValues()
testSettingCustomInputDefinitionOverwritesDefaultValues()
testRunWithDispatcher()
testRunWithExceptionAndDispatcher()
testRunDispatchesAllEventsWithException()
testRunDispatchesAllEventsWithExceptionInListener()
testRunWithError()
testRunAllowsErrorListenersToSilenceTheException()
testConsoleErrorEventIsTriggeredOnCommandNotFound()
testErrorIsRethrownIfNotHandledByConsoleErrorEvent()
testRunWithErrorAndDispatcher()
testRunDispatchesAllEventsWithError()
testRunWithErrorFailingStatusCode()
testRunWithDispatcherSkippingCommand()
testRunWithDispatcherAccessingInputOptions()
testRunWithDispatcherAddingInputOptions()
testSetRunCustomDefaultCommand()
testSetRunCustomDefaultCommandWithOption()
testSetRunCustomSingleCommand()
testCanCheckIfTerminalIsInteractive()
testRunLazyCommandService()
testGetDisabledLazyCommand()
testHasReturnsFalseForDisabledLazyCommand()
testAllExcludesDisabledLazyCommand()
testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled()
testThrowingErrorListener()
No public properties found
No constants found
normalizeLineBreaks()
ensureStaticCommandHelp()
getDispatcher()
tearDown()
$fixturesPath
N/A
No private methods found
No private properties found
N/A

Properties

$fixturesPath

$fixturesPath : 

Type

Methods

setUpBeforeClass()

setUpBeforeClass() 

testConstructor()

testConstructor() 

testSetGetName()

testSetGetName() 

testSetGetVersion()

testSetGetVersion() 

testGetLongVersion()

testGetLongVersion() 

testHelp()

testHelp() 

testAll()

testAll() 

testAllWithCommandLoader()

testAllWithCommandLoader() 

testRegister()

testRegister() 

testAdd()

testAdd() 

testAddCommandWithEmptyConstructor()

testAddCommandWithEmptyConstructor() 

testHasGet()

testHasGet() 

testHasGetWithCommandLoader()

testHasGetWithCommandLoader() 

testSilentHelp()

testSilentHelp() 

testGetInvalidCommand()

testGetInvalidCommand() 

testGetNamespaces()

testGetNamespaces() 

testFindNamespace()

testFindNamespace() 

testFindNamespaceWithSubnamespaces()

testFindNamespaceWithSubnamespaces() 

testFindAmbiguousNamespace()

testFindAmbiguousNamespace() 

testFindNonAmbiguous()

testFindNonAmbiguous() 

testFindInvalidNamespace()

testFindInvalidNamespace() 

testFindUniqueNameButNamespaceName()

testFindUniqueNameButNamespaceName() 

testFind()

testFind() 

testFindCaseSensitiveFirst()

testFindCaseSensitiveFirst() 

testFindCaseInsensitiveAsFallback()

testFindCaseInsensitiveAsFallback() 

testFindCaseInsensitiveSuggestions()

testFindCaseInsensitiveSuggestions() 

testFindWithCommandLoader()

testFindWithCommandLoader() 

testFindWithAmbiguousAbbreviations()

testFindWithAmbiguousAbbreviations(  $abbreviation,   $expectedExceptionMessage) 

Parameters

$abbreviation
$expectedExceptionMessage

provideAmbiguousAbbreviations()

provideAmbiguousAbbreviations() 

testFindCommandEqualNamespace()

testFindCommandEqualNamespace() 

testFindCommandWithAmbiguousNamespacesButUniqueName()

testFindCommandWithAmbiguousNamespacesButUniqueName() 

testFindCommandWithMissingNamespace()

testFindCommandWithMissingNamespace() 

testFindAlternativeExceptionMessageSingle()

testFindAlternativeExceptionMessageSingle(  $name) 

Parameters

$name

testDontRunAlternativeNamespaceName()

testDontRunAlternativeNamespaceName() 

testCanRunAlternativeCommandName()

testCanRunAlternativeCommandName() 

testDontRunAlternativeCommandName()

testDontRunAlternativeCommandName() 

provideInvalidCommandNamesSingle()

provideInvalidCommandNamesSingle() 

testFindAlternativeExceptionMessageMultiple()

testFindAlternativeExceptionMessageMultiple() 

testFindAlternativeCommands()

testFindAlternativeCommands() 

testFindAlternativeCommandsWithAnAlias()

testFindAlternativeCommandsWithAnAlias() 

testFindAlternativeNamespace()

testFindAlternativeNamespace() 

testFindAlternativesOutput()

testFindAlternativesOutput() 

testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()

testFindNamespaceDoesNotFailOnDeepSimilarNamespaces() 

testFindWithDoubleColonInNameThrowsException()

testFindWithDoubleColonInNameThrowsException() 

testSetCatchExceptions()

testSetCatchExceptions() 

testAutoExitSetting()

testAutoExitSetting() 

testRenderException()

testRenderException() 

testRenderExceptionWithDoubleWidthCharacters()

testRenderExceptionWithDoubleWidthCharacters() 

testRenderExceptionEscapesLines()

testRenderExceptionEscapesLines() 

testRenderExceptionLineBreaks()

testRenderExceptionLineBreaks() 

testRun()

testRun() 

testVerboseValueNotBreakArguments()

testVerboseValueNotBreakArguments() 

Issue #9285.

If the "verbose" option is just before an argument in ArgvInput, an argument value should not be treated as verbosity value. This test will fail with "Not enough arguments." if broken

testRunReturnsIntegerExitCode()

testRunReturnsIntegerExitCode() 

testRunDispatchesIntegerExitCode()

testRunDispatchesIntegerExitCode() 

testRunReturnsExitCodeOneForExceptionCodeZero()

testRunReturnsExitCodeOneForExceptionCodeZero() 

testRunDispatchesExitCodeOneForExceptionCodeZero()

testRunDispatchesExitCodeOneForExceptionCodeZero() 

testAddingOptionWithDuplicateShortcut()

testAddingOptionWithDuplicateShortcut() 

testAddingAlreadySetDefinitionElementData()

testAddingAlreadySetDefinitionElementData(  $def) 

Parameters

$def

getAddingAlreadySetDefinitionElementData()

getAddingAlreadySetDefinitionElementData() 

testGetDefaultHelperSetReturnsDefaultValues()

testGetDefaultHelperSetReturnsDefaultValues() 

testAddingSingleHelperSetOverwritesDefaultValues()

testAddingSingleHelperSetOverwritesDefaultValues() 

testOverwritingDefaultHelperSetOverwritesDefaultValues()

testOverwritingDefaultHelperSetOverwritesDefaultValues() 

testGetDefaultInputDefinitionReturnsDefaultValues()

testGetDefaultInputDefinitionReturnsDefaultValues() 

testOverwritingDefaultInputDefinitionOverwritesDefaultValues()

testOverwritingDefaultInputDefinitionOverwritesDefaultValues() 

testSettingCustomInputDefinitionOverwritesDefaultValues()

testSettingCustomInputDefinitionOverwritesDefaultValues() 

testRunWithDispatcher()

testRunWithDispatcher() 

testRunWithExceptionAndDispatcher()

testRunWithExceptionAndDispatcher() 

testRunDispatchesAllEventsWithException()

testRunDispatchesAllEventsWithException() 

testRunDispatchesAllEventsWithExceptionInListener()

testRunDispatchesAllEventsWithExceptionInListener() 

testRunWithError()

testRunWithError() 

testRunAllowsErrorListenersToSilenceTheException()

testRunAllowsErrorListenersToSilenceTheException() 

testConsoleErrorEventIsTriggeredOnCommandNotFound()

testConsoleErrorEventIsTriggeredOnCommandNotFound() 

testErrorIsRethrownIfNotHandledByConsoleErrorEvent()

testErrorIsRethrownIfNotHandledByConsoleErrorEvent() 

testRunWithErrorAndDispatcher()

testRunWithErrorAndDispatcher() 

testRunDispatchesAllEventsWithError()

testRunDispatchesAllEventsWithError() 

testRunWithErrorFailingStatusCode()

testRunWithErrorFailingStatusCode() 

testRunWithDispatcherSkippingCommand()

testRunWithDispatcherSkippingCommand() 

testRunWithDispatcherAccessingInputOptions()

testRunWithDispatcherAccessingInputOptions() 

testRunWithDispatcherAddingInputOptions()

testRunWithDispatcherAddingInputOptions() 

testSetRunCustomDefaultCommand()

testSetRunCustomDefaultCommand() 

testSetRunCustomDefaultCommandWithOption()

testSetRunCustomDefaultCommandWithOption() 

testSetRunCustomSingleCommand()

testSetRunCustomSingleCommand() 

testCanCheckIfTerminalIsInteractive()

testCanCheckIfTerminalIsInteractive() 

testRunLazyCommandService()

testRunLazyCommandService() 

testGetDisabledLazyCommand()

testGetDisabledLazyCommand() 

testHasReturnsFalseForDisabledLazyCommand()

testHasReturnsFalseForDisabledLazyCommand() 

testAllExcludesDisabledLazyCommand()

testAllExcludesDisabledLazyCommand() 

testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled()

testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled() 

testThrowingErrorListener()

testThrowingErrorListener() 

normalizeLineBreaks()

normalizeLineBreaks(  $text) 

Parameters

$text

ensureStaticCommandHelp()

ensureStaticCommandHelp(\Symfony\Component\Console\Application  $application) 

Replaces the dynamic placeholders of the command help text with a static version.

The placeholder %command.full_name% includes the script path that is not predictable and can not be tested against.

Parameters

\Symfony\Component\Console\Application $application

getDispatcher()

getDispatcher(  $skipCommand = false) 

Parameters

$skipCommand

tearDown()

tearDown()