TYPO3  7.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
ApplicationTest Class Reference
Inheritance diagram for ApplicationTest:

Public Member Functions

 testConstructor ()
 
 testSetGetName ()
 
 testSetGetVersion ()
 
 testGetLongVersion ()
 
 testHelp ()
 
 testAll ()
 
 testRegister ()
 
 testAdd ()
 
 testAddCommandWithEmptyConstructor ()
 
 testHasGet ()
 
 testSilentHelp ()
 
 testGetInvalidCommand ()
 
 testGetNamespaces ()
 
 testFindNamespace ()
 
 testFindNamespaceWithSubnamespaces ()
 
 testFindAmbiguousNamespace ()
 
 testFindInvalidNamespace ()
 
 testFindUniqueNameButNamespaceName ()
 
 testFind ()
 
 testFindWithAmbiguousAbbreviations ($abbreviation, $expectedExceptionMessage)
 
 provideAmbiguousAbbreviations ()
 
 testFindCommandEqualNamespace ()
 
 testFindCommandWithAmbiguousNamespacesButUniqueName ()
 
 testFindCommandWithMissingNamespace ()
 
 testFindAlternativeExceptionMessageSingle ($name)
 
 provideInvalidCommandNamesSingle ()
 
 testFindAlternativeExceptionMessageMultiple ()
 
 testFindAlternativeCommands ()
 
 testFindAlternativeCommandsWithAnAlias ()
 
 testFindAlternativeNamespace ()
 
 testFindNamespaceDoesNotFailOnDeepSimilarNamespaces ()
 
 testFindWithDoubleColonInNameThrowsException ()
 
 testSetCatchExceptions ()
 
 testLegacyAsText ()
 
 testLegacyAsXml ()
 
 testRenderException ()
 
 testRenderExceptionWithDoubleWidthCharacters ()
 
 testRun ()
 
 testVerboseValueNotBreakArguments ()
 
 testRunReturnsIntegerExitCode ()
 
 testRunReturnsExitCodeOneForExceptionCodeZero ()
 
 testAddingAlreadySetDefinitionElementData ($def)
 
 getAddingAlreadySetDefinitionElementData ()
 
 testGetDefaultHelperSetReturnsDefaultValues ()
 
 testAddingSingleHelperSetOverwritesDefaultValues ()
 
 testOverwritingDefaultHelperSetOverwritesDefaultValues ()
 
 testGetDefaultInputDefinitionReturnsDefaultValues ()
 
 testOverwritingDefaultInputDefinitionOverwritesDefaultValues ()
 
 testSettingCustomInputDefinitionOverwritesDefaultValues ()
 
 testRunWithDispatcher ()
 
 testRunWithExceptionAndDispatcher ()
 
 testRunDispatchesAllEventsWithException ()
 
 testRunWithDispatcherSkippingCommand ()
 
 testTerminalDimensions ()
 
 testSetRunCustomDefaultCommand ()
 
 testCanCheckIfTerminalIsInteractive ()
 

Static Public Member Functions

static setUpBeforeClass ()
 

Protected Member Functions

 normalizeLineBreaks ($text)
 
 ensureStaticCommandHelp (Application $application)
 
 getDispatcher ($skipCommand=false)
 

Static Protected Attributes

static $fixturesPath
 

Detailed Description

Definition at line 33 of file ApplicationTest.php.

Member Function Documentation

ensureStaticCommandHelp ( Application  $application)
protected

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.

Definition at line 62 of file ApplicationTest.php.

References Application\all().

Referenced by ApplicationTest\testLegacyAsText(), ApplicationTest\testLegacyAsXml(), and ApplicationTest\testRun().

getAddingAlreadySetDefinitionElementData ( )

Definition at line 754 of file ApplicationTest.php.

References InputArgument\REQUIRED, and InputOption\VALUE_NONE.

getDispatcher (   $skipCommand = false)
protected
normalizeLineBreaks (   $text)
protected
provideAmbiguousAbbreviations ( )

Definition at line 278 of file ApplicationTest.php.

provideInvalidCommandNamesSingle ( )

Definition at line 326 of file ApplicationTest.php.

static setUpBeforeClass ( )
static

Definition at line 37 of file ApplicationTest.php.

testAdd ( )

Definition at line 121 of file ApplicationTest.php.

testAddCommandWithEmptyConstructor ( )

Command class "Foo5Command" is not correctly initialized. You probably forgot to call the parent constructor.

Definition at line 138 of file ApplicationTest.php.

testAddingAlreadySetDefinitionElementData (   $def)

getAddingAlreadySetDefinitionElementData

Definition at line 738 of file ApplicationTest.php.

testAddingSingleHelperSetOverwritesDefaultValues ( )

Definition at line 776 of file ApplicationTest.php.

testAll ( )

Definition at line 103 of file ApplicationTest.php.

testCanCheckIfTerminalIsInteractive ( )

Definition at line 1005 of file ApplicationTest.php.

testConstructor ( )

Definition at line 69 of file ApplicationTest.php.

testFind ( )

Definition at line 251 of file ApplicationTest.php.

testFindAlternativeCommands ( )

Definition at line 376 of file ApplicationTest.php.

testFindAlternativeCommandsWithAnAlias ( )

Definition at line 406 of file ApplicationTest.php.

testFindAlternativeExceptionMessageMultiple ( )

Definition at line 334 of file ApplicationTest.php.

testFindAlternativeExceptionMessageSingle (   $name)

provideInvalidCommandNamesSingle Did you mean this

Definition at line 319 of file ApplicationTest.php.

testFindAlternativeNamespace ( )

Definition at line 419 of file ApplicationTest.php.

testFindAmbiguousNamespace ( )

The namespace "f" is ambiguous (foo, foo1).

Definition at line 218 of file ApplicationTest.php.

testFindCommandEqualNamespace ( )

Definition at line 287 of file ApplicationTest.php.

testFindCommandWithAmbiguousNamespacesButUniqueName ( )

Definition at line 297 of file ApplicationTest.php.

testFindCommandWithMissingNamespace ( )

Definition at line 306 of file ApplicationTest.php.

testFindInvalidNamespace ( )

There are no commands defined in the "bar" namespace.

Definition at line 231 of file ApplicationTest.php.

testFindNamespace ( )

Definition at line 196 of file ApplicationTest.php.

testFindNamespaceDoesNotFailOnDeepSimilarNamespaces ( )

Definition at line 448 of file ApplicationTest.php.

testFindNamespaceWithSubnamespaces ( )

Definition at line 206 of file ApplicationTest.php.

testFindUniqueNameButNamespaceName ( )

Command "foo1" is not defined

Definition at line 241 of file ApplicationTest.php.

testFindWithAmbiguousAbbreviations (   $abbreviation,
  $expectedExceptionMessage 
)

provideAmbiguousAbbreviations

Definition at line 266 of file ApplicationTest.php.

testFindWithDoubleColonInNameThrowsException ( )

Command "foo::bar" is not defined.

Definition at line 462 of file ApplicationTest.php.

testGetDefaultHelperSetReturnsDefaultValues ( )

Definition at line 763 of file ApplicationTest.php.

testGetDefaultInputDefinitionReturnsDefaultValues ( )

Definition at line 810 of file ApplicationTest.php.

testGetInvalidCommand ( )

The command "foofoo" does not exist.

Definition at line 182 of file ApplicationTest.php.

testGetLongVersion ( )

Definition at line 91 of file ApplicationTest.php.

testGetNamespaces ( )

Definition at line 188 of file ApplicationTest.php.

testHasGet ( )

Definition at line 144 of file ApplicationTest.php.

testHelp ( )

Definition at line 97 of file ApplicationTest.php.

References ApplicationTest\normalizeLineBreaks().

testLegacyAsText ( )
testLegacyAsXml ( )

legacy

Definition at line 508 of file ApplicationTest.php.

References ApplicationTest\ensureStaticCommandHelp().

testOverwritingDefaultHelperSetOverwritesDefaultValues ( )

Definition at line 793 of file ApplicationTest.php.

testOverwritingDefaultInputDefinitionOverwritesDefaultValues ( )

Definition at line 829 of file ApplicationTest.php.

testRegister ( )

Definition at line 114 of file ApplicationTest.php.

testRenderException ( )

Definition at line 517 of file ApplicationTest.php.

References OutputInterface\VERBOSITY_VERBOSE.

testRenderExceptionWithDoubleWidthCharacters ( )

Definition at line 554 of file ApplicationTest.php.

testRun ( )
testRunDispatchesAllEventsWithException ( )
testRunReturnsExitCodeOneForExceptionCodeZero ( )

Definition at line 719 of file ApplicationTest.php.

testRunReturnsIntegerExitCode ( )

Definition at line 704 of file ApplicationTest.php.

testRunWithDispatcher ( )
testRunWithDispatcherSkippingCommand ( )
testRunWithExceptionAndDispatcher ( )

caught

Definition at line 894 of file ApplicationTest.php.

References ApplicationTest\getDispatcher().

testSetCatchExceptions ( )

Definition at line 470 of file ApplicationTest.php.

testSetGetName ( )

Definition at line 77 of file ApplicationTest.php.

testSetGetVersion ( )

Definition at line 84 of file ApplicationTest.php.

testSetRunCustomDefaultCommand ( )

Definition at line 983 of file ApplicationTest.php.

testSettingCustomInputDefinitionOverwritesDefaultValues ( )

Definition at line 851 of file ApplicationTest.php.

References InputOption\VALUE_NONE.

testSilentHelp ( )

Definition at line 166 of file ApplicationTest.php.

testTerminalDimensions ( )

Definition at line 942 of file ApplicationTest.php.

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

Definition at line 688 of file ApplicationTest.php.

Member Data Documentation

$fixturesPath
staticprotected

Definition at line 35 of file ApplicationTest.php.