PHP Class Symfony\Component\Console\Tests\ApplicationTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: symfony/symfony

Protected Properties

Property Type Description
$fixturesPath

Public Methods

Method Description
getAddingAlreadySetDefinitionElementData ( )
provideAmbiguousAbbreviations ( )
provideInvalidCommandNamesSingle ( )
setUpBeforeClass ( )
testAdd ( )
testAddCommandWithEmptyConstructor ( )
testAddingAlreadySetDefinitionElementData ( $def )
testAddingOptionWithDuplicateShortcut ( )
testAddingSingleHelperSetOverwritesDefaultValues ( )
testAll ( )
testAutoExitSetting ( )
testCanCheckIfTerminalIsInteractive ( )
testConstructor ( )
testFind ( )
testFindAlternativeCommands ( )
testFindAlternativeCommandsWithAnAlias ( )
testFindAlternativeExceptionMessageMultiple ( )
testFindAlternativeExceptionMessageSingle ( $name )
testFindAlternativeNamespace ( )
testFindAmbiguousNamespace ( )
testFindCommandEqualNamespace ( )
testFindCommandWithAmbiguousNamespacesButUniqueName ( )
testFindCommandWithMissingNamespace ( )
testFindInvalidNamespace ( )
testFindNamespace ( )
testFindNamespaceDoesNotFailOnDeepSimilarNamespaces ( )
testFindNamespaceWithSubnamespaces ( )
testFindUniqueNameButNamespaceName ( )
testFindWithAmbiguousAbbreviations ( $abbreviation, $expectedExceptionMessage )
testFindWithDoubleColonInNameThrowsException ( )
testGetDefaultHelperSetReturnsDefaultValues ( )
testGetDefaultInputDefinitionReturnsDefaultValues ( )
testGetInvalidCommand ( )
testGetLongVersion ( )
testGetNamespaces ( )
testHasGet ( )
testHelp ( )
testOverwritingDefaultHelperSetOverwritesDefaultValues ( )
testOverwritingDefaultInputDefinitionOverwritesDefaultValues ( )
testRegister ( )
testRenderException ( )
testRenderExceptionWithDoubleWidthCharacters ( )
testRun ( )
testRunDispatchesAllEventsWithError ( )
testRunDispatchesAllEventsWithException ( )
testRunReturnsExitCodeOneForExceptionCodeZero ( )
testRunReturnsIntegerExitCode ( )
testRunWithDispatcher ( )
testRunWithDispatcherAccessingInputOptions ( )
testRunWithDispatcherAddingInputOptions ( )
testRunWithDispatcherSkippingCommand ( )
testRunWithError ( )
testRunWithErrorAndDispatcher ( )
testRunWithErrorFailingStatusCode ( )
testRunWithExceptionAndDispatcher ( )
testSetCatchExceptions ( )
testSetGetName ( )
testSetGetVersion ( )
testSetRunCustomDefaultCommand ( )
testSetRunCustomSingleCommand ( )
testSettingCustomInputDefinitionOverwritesDefaultValues ( )
testSilentHelp ( )
testTerminalDimensions ( )
testVerboseValueNotBreakArguments ( ) Issue #9285.

Protected Methods

Method Description
ensureStaticCommandHelp ( Application $application ) Replaces the dynamic placeholders of the command help text with a static version.
getDispatcher ( $skipCommand = false )
normalizeLineBreaks ( $text )

Method Details

ensureStaticCommandHelp() protected method

The placeholder %command.full_name% includes the script path that is not predictable and can not be tested against.
protected ensureStaticCommandHelp ( Application $application )
$application Symfony\Component\Console\Application

getAddingAlreadySetDefinitionElementData() public method

getDispatcher() protected method

protected getDispatcher ( $skipCommand = false )

normalizeLineBreaks() protected method

protected normalizeLineBreaks ( $text )

provideAmbiguousAbbreviations() public method

provideInvalidCommandNamesSingle() public method

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

testAdd() public method

public testAdd ( )

testAddCommandWithEmptyConstructor() public method

testAddingAlreadySetDefinitionElementData() public method

testAddingOptionWithDuplicateShortcut() public method

testAddingSingleHelperSetOverwritesDefaultValues() public method

testAll() public method

public testAll ( )

testAutoExitSetting() public method

public testAutoExitSetting ( )

testCanCheckIfTerminalIsInteractive() public method

testConstructor() public method

public testConstructor ( )

testFind() public method

public testFind ( )

testFindAlternativeCommands() public method

testFindAlternativeCommandsWithAnAlias() public method

testFindAlternativeExceptionMessageMultiple() public method

testFindAlternativeExceptionMessageSingle() public method

testFindAlternativeNamespace() public method

testFindAmbiguousNamespace() public method

testFindCommandEqualNamespace() public method

testFindCommandWithAmbiguousNamespacesButUniqueName() public method

testFindCommandWithMissingNamespace() public method

testFindInvalidNamespace() public method

testFindNamespace() public method

public testFindNamespace ( )

testFindNamespaceDoesNotFailOnDeepSimilarNamespaces() public method

testFindNamespaceWithSubnamespaces() public method

testFindUniqueNameButNamespaceName() public method

testFindWithAmbiguousAbbreviations() public method

public testFindWithAmbiguousAbbreviations ( $abbreviation, $expectedExceptionMessage )

testFindWithDoubleColonInNameThrowsException() public method

testGetDefaultHelperSetReturnsDefaultValues() public method

testGetDefaultInputDefinitionReturnsDefaultValues() public method

testGetInvalidCommand() public method

testGetLongVersion() public method

public testGetLongVersion ( )

testGetNamespaces() public method

public testGetNamespaces ( )

testHasGet() public method

public testHasGet ( )

testHelp() public method

public testHelp ( )

testOverwritingDefaultHelperSetOverwritesDefaultValues() public method

testOverwritingDefaultInputDefinitionOverwritesDefaultValues() public method

testRegister() public method

public testRegister ( )

testRenderException() public method

public testRenderException ( )

testRenderExceptionWithDoubleWidthCharacters() public method

testRun() public method

public testRun ( )

testRunDispatchesAllEventsWithError() public method

testRunDispatchesAllEventsWithException() public method

testRunReturnsExitCodeOneForExceptionCodeZero() public method

testRunReturnsIntegerExitCode() public method

testRunWithDispatcher() public method

testRunWithDispatcherAccessingInputOptions() public method

testRunWithDispatcherAddingInputOptions() public method

testRunWithDispatcherSkippingCommand() public method

testRunWithError() public method

public testRunWithError ( )

testRunWithErrorAndDispatcher() public method

testRunWithErrorFailingStatusCode() public method

testRunWithExceptionAndDispatcher() public method

testSetCatchExceptions() public method

testSetGetName() public method

public testSetGetName ( )

testSetGetVersion() public method

public testSetGetVersion ( )

testSetRunCustomDefaultCommand() public method

testSetRunCustomSingleCommand() public method

testSettingCustomInputDefinitionOverwritesDefaultValues() public method

testSilentHelp() public method

public testSilentHelp ( )

testTerminalDimensions() public method

testVerboseValueNotBreakArguments() public method

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

Property Details

$fixturesPath protected_oe static_oe property

protected static $fixturesPath