ApplicationTest
extends TestCase
in package
Table of Contents
Properties
- $fixturesPath : mixed
Methods
- getAddingAlreadySetDefinitionElementData() : mixed
- provideAmbiguousAbbreviations() : mixed
- provideInvalidCommandNamesSingle() : mixed
- setUpBeforeClass() : mixed
- testAdd() : mixed
- testAddCommandWithEmptyConstructor() : mixed
- testAddingAlreadySetDefinitionElementData() : mixed
- testAddingOptionWithDuplicateShortcut() : mixed
- testAddingSingleHelperSetOverwritesDefaultValues() : mixed
- testAll() : mixed
- testAutoExitSetting() : mixed
- testCanCheckIfTerminalIsInteractive() : mixed
- testConsoleErrorEventIsTriggeredOnCommandNotFound() : mixed
- testConstructor() : mixed
- testErrorIsRethrownIfNotHandledByConsoleErrorEvent() : mixed
- testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled() : mixed
- testFind() : mixed
- testFindAlternativeCommands() : mixed
- testFindAlternativeCommandsWithAnAlias() : mixed
- testFindAlternativeExceptionMessageMultiple() : mixed
- testFindAlternativeExceptionMessageSingle() : mixed
- testFindAlternativeNamespace() : mixed
- testFindAlternativesOutput() : mixed
- testFindAmbiguousNamespace() : mixed
- testFindCommandEqualNamespace() : mixed
- testFindCommandWithAmbiguousNamespacesButUniqueName() : mixed
- testFindCommandWithMissingNamespace() : mixed
- testFindInvalidNamespace() : mixed
- testFindNamespace() : mixed
- testFindNamespaceDoesNotFailOnDeepSimilarNamespaces() : mixed
- testFindNamespaceWithSubnamespaces() : mixed
- testFindUniqueNameButNamespaceName() : mixed
- testFindWithAmbiguousAbbreviations() : mixed
- testFindWithDoubleColonInNameThrowsException() : mixed
- testGetDefaultHelperSetReturnsDefaultValues() : mixed
- testGetDefaultInputDefinitionReturnsDefaultValues() : mixed
- testGetInvalidCommand() : mixed
- testGetLongVersion() : mixed
- testGetNamespaces() : mixed
- testHasGet() : mixed
- testHelp() : mixed
- testLegacyExceptionListenersAreStillTriggered() : mixed
- testOverwritingDefaultHelperSetOverwritesDefaultValues() : mixed
- testOverwritingDefaultInputDefinitionOverwritesDefaultValues() : mixed
- testRegister() : mixed
- testRenderException() : mixed
- testRenderExceptionEscapesLines() : mixed
- testRenderExceptionWithDoubleWidthCharacters() : mixed
- testRun() : mixed
- testRunAllowsErrorListenersToSilenceTheException() : mixed
- testRunDispatchesAllEventsWithError() : mixed
- testRunDispatchesAllEventsWithException() : mixed
- testRunDispatchesAllEventsWithExceptionInListener() : mixed
- testRunReturnsExitCodeOneForExceptionCodeZero() : mixed
- testRunReturnsIntegerExitCode() : mixed
- testRunWithDispatcher() : mixed
- testRunWithDispatcherAccessingInputOptions() : mixed
- testRunWithDispatcherAddingInputOptions() : mixed
- testRunWithDispatcherSkippingCommand() : mixed
- testRunWithError() : mixed
- testRunWithErrorAndDispatcher() : mixed
- testRunWithErrorFailingStatusCode() : mixed
- testRunWithExceptionAndDispatcher() : mixed
- testSetCatchExceptions() : mixed
- testSetGetName() : mixed
- testSetGetVersion() : mixed
- testSetRunCustomDefaultCommand() : mixed
- testSetRunCustomDefaultCommandWithOption() : mixed
- testSetRunCustomSingleCommand() : mixed
- testSettingCustomInputDefinitionOverwritesDefaultValues() : mixed
- testSilentHelp() : mixed
- testTerminalDimensions() : mixed
- testVerboseValueNotBreakArguments() : mixed
- Issue #9285.
- ensureStaticCommandHelp() : mixed
- Replaces the dynamic placeholders of the command help text with a static version.
- getDispatcher() : mixed
- normalizeLineBreaks() : mixed
Properties
$fixturesPath
protected
static mixed
$fixturesPath
Methods
getAddingAlreadySetDefinitionElementData()
public
getAddingAlreadySetDefinitionElementData() : mixed
provideAmbiguousAbbreviations()
public
provideAmbiguousAbbreviations() : mixed
provideInvalidCommandNamesSingle()
public
provideInvalidCommandNamesSingle() : mixed
setUpBeforeClass()
public
static setUpBeforeClass() : mixed
testAdd()
public
testAdd() : mixed
testAddCommandWithEmptyConstructor()
public
testAddCommandWithEmptyConstructor() : mixed
Tags
testAddingAlreadySetDefinitionElementData()
public
testAddingAlreadySetDefinitionElementData(mixed $def) : mixed
Parameters
- $def : mixed
Tags
testAddingOptionWithDuplicateShortcut()
public
testAddingOptionWithDuplicateShortcut() : mixed
Tags
testAddingSingleHelperSetOverwritesDefaultValues()
public
testAddingSingleHelperSetOverwritesDefaultValues() : mixed
testAll()
public
testAll() : mixed
testAutoExitSetting()
public
testAutoExitSetting() : mixed
testCanCheckIfTerminalIsInteractive()
public
testCanCheckIfTerminalIsInteractive() : mixed
Tags
testConsoleErrorEventIsTriggeredOnCommandNotFound()
public
testConsoleErrorEventIsTriggeredOnCommandNotFound() : mixed
testConstructor()
public
testConstructor() : mixed
testErrorIsRethrownIfNotHandledByConsoleErrorEvent()
public
testErrorIsRethrownIfNotHandledByConsoleErrorEvent() : mixed
Tags
testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled()
public
testErrorIsRethrownIfNotHandledByConsoleErrorEventWithCatchingEnabled() : mixed
Tags
testFind()
public
testFind() : mixed
testFindAlternativeCommands()
public
testFindAlternativeCommands() : mixed
testFindAlternativeCommandsWithAnAlias()
public
testFindAlternativeCommandsWithAnAlias() : mixed
testFindAlternativeExceptionMessageMultiple()
public
testFindAlternativeExceptionMessageMultiple() : mixed
testFindAlternativeExceptionMessageSingle()
public
testFindAlternativeExceptionMessageSingle(mixed $name) : mixed
Parameters
- $name : mixed
Tags
testFindAlternativeNamespace()
public
testFindAlternativeNamespace() : mixed
testFindAlternativesOutput()
public
testFindAlternativesOutput() : mixed
testFindAmbiguousNamespace()
public
testFindAmbiguousNamespace() : mixed
testFindCommandEqualNamespace()
public
testFindCommandEqualNamespace() : mixed
testFindCommandWithAmbiguousNamespacesButUniqueName()
public
testFindCommandWithAmbiguousNamespacesButUniqueName() : mixed
testFindCommandWithMissingNamespace()
public
testFindCommandWithMissingNamespace() : mixed
testFindInvalidNamespace()
public
testFindInvalidNamespace() : mixed
Tags
testFindNamespace()
public
testFindNamespace() : mixed
testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()
public
testFindNamespaceDoesNotFailOnDeepSimilarNamespaces() : mixed
testFindNamespaceWithSubnamespaces()
public
testFindNamespaceWithSubnamespaces() : mixed
testFindUniqueNameButNamespaceName()
public
testFindUniqueNameButNamespaceName() : mixed
Tags
testFindWithAmbiguousAbbreviations()
public
testFindWithAmbiguousAbbreviations(mixed $abbreviation, mixed $expectedExceptionMessage) : mixed
Parameters
- $abbreviation : mixed
- $expectedExceptionMessage : mixed
Tags
testFindWithDoubleColonInNameThrowsException()
public
testFindWithDoubleColonInNameThrowsException() : mixed
Tags
testGetDefaultHelperSetReturnsDefaultValues()
public
testGetDefaultHelperSetReturnsDefaultValues() : mixed
testGetDefaultInputDefinitionReturnsDefaultValues()
public
testGetDefaultInputDefinitionReturnsDefaultValues() : mixed
testGetInvalidCommand()
public
testGetInvalidCommand() : mixed
Tags
testGetLongVersion()
public
testGetLongVersion() : mixed
testGetNamespaces()
public
testGetNamespaces() : mixed
testHasGet()
public
testHasGet() : mixed
testHelp()
public
testHelp() : mixed
testLegacyExceptionListenersAreStillTriggered()
public
testLegacyExceptionListenersAreStillTriggered() : mixed
Tags
testOverwritingDefaultHelperSetOverwritesDefaultValues()
public
testOverwritingDefaultHelperSetOverwritesDefaultValues() : mixed
testOverwritingDefaultInputDefinitionOverwritesDefaultValues()
public
testOverwritingDefaultInputDefinitionOverwritesDefaultValues() : mixed
testRegister()
public
testRegister() : mixed
testRenderException()
public
testRenderException() : mixed
testRenderExceptionEscapesLines()
public
testRenderExceptionEscapesLines() : mixed
testRenderExceptionWithDoubleWidthCharacters()
public
testRenderExceptionWithDoubleWidthCharacters() : mixed
testRun()
public
testRun() : mixed
testRunAllowsErrorListenersToSilenceTheException()
public
testRunAllowsErrorListenersToSilenceTheException() : mixed
testRunDispatchesAllEventsWithError()
public
testRunDispatchesAllEventsWithError() : mixed
testRunDispatchesAllEventsWithException()
public
testRunDispatchesAllEventsWithException() : mixed
testRunDispatchesAllEventsWithExceptionInListener()
public
testRunDispatchesAllEventsWithExceptionInListener() : mixed
testRunReturnsExitCodeOneForExceptionCodeZero()
public
testRunReturnsExitCodeOneForExceptionCodeZero() : mixed
testRunReturnsIntegerExitCode()
public
testRunReturnsIntegerExitCode() : mixed
testRunWithDispatcher()
public
testRunWithDispatcher() : mixed
testRunWithDispatcherAccessingInputOptions()
public
testRunWithDispatcherAccessingInputOptions() : mixed
testRunWithDispatcherAddingInputOptions()
public
testRunWithDispatcherAddingInputOptions() : mixed
testRunWithDispatcherSkippingCommand()
public
testRunWithDispatcherSkippingCommand() : mixed
testRunWithError()
public
testRunWithError() : mixed
testRunWithErrorAndDispatcher()
public
testRunWithErrorAndDispatcher() : mixed
Tags
testRunWithErrorFailingStatusCode()
public
testRunWithErrorFailingStatusCode() : mixed
testRunWithExceptionAndDispatcher()
public
testRunWithExceptionAndDispatcher() : mixed
Tags
testSetCatchExceptions()
public
testSetCatchExceptions() : mixed
testSetGetName()
public
testSetGetName() : mixed
testSetGetVersion()
public
testSetGetVersion() : mixed
testSetRunCustomDefaultCommand()
public
testSetRunCustomDefaultCommand() : mixed
testSetRunCustomDefaultCommandWithOption()
public
testSetRunCustomDefaultCommandWithOption() : mixed
testSetRunCustomSingleCommand()
public
testSetRunCustomSingleCommand() : mixed
testSettingCustomInputDefinitionOverwritesDefaultValues()
public
testSettingCustomInputDefinitionOverwritesDefaultValues() : mixed
testSilentHelp()
public
testSilentHelp() : mixed
testTerminalDimensions()
public
testTerminalDimensions() : mixed
Tags
testVerboseValueNotBreakArguments()
Issue #9285.
public
testVerboseValueNotBreakArguments() : mixed
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
ensureStaticCommandHelp()
Replaces the dynamic placeholders of the command help text with a static version.
protected
ensureStaticCommandHelp(Application $application) : mixed
The placeholder %command.full_name% includes the script path that is not predictable and can not be tested against.
Parameters
- $application : Application
getDispatcher()
protected
getDispatcher([mixed $skipCommand = false ]) : mixed
Parameters
- $skipCommand : mixed = false
normalizeLineBreaks()
protected
normalizeLineBreaks(mixed $text) : mixed
Parameters
- $text : mixed