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

  • CommandTest
  • HelpCommandTest
  • ListCommandTest

Functions

  • createClosure
  • Overview
  • Namespace
  • Class

Class CommandTest

PHPUnit_Framework_TestCase
Extended by Symfony\Component\Console\Tests\Command\CommandTest
Namespace: Symfony\Component\Console\Tests\Command
Located at Tests/Command/CommandTest.php
Methods summary
public static
# setUpBeforeClass( )
public
# testConstructor( )
public
# testCommandNameCannotBeEmpty( )

Expectedexception

\LogicException

Expectedexceptionmessage

The command defined in "Symfony\Component\Console\Command\Command" cannot have an empty name.
public
# testSetApplication( )
public
# testSetGetDefinition( )
public
# testAddArgument( )
public
# testAddOption( )
public
# testGetNamespaceGetNameSetName( )
public
# testInvalidCommandNames( $name )

Dataprovider

provideInvalidCommandNames
public
# provideInvalidCommandNames( )
public
# testGetSetDescription( )
public
# testGetSetHelp( )
public
# testGetProcessedHelp( )
public
# testGetSetAliases( )
public
# testGetSynopsis( )
public
# testGetHelper( )
public
# testGetHelperWithoutHelperSet( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot retrieve helper "formatter" because there is no HelperSet defined.
public
# testMergeApplicationDefinition( )
public
# testMergeApplicationDefinitionWithoutArgsThenWithArgsAddsArgs( )
public
# testRunInteractive( )
public
# testRunNonInteractive( )
public
# testExecuteMethodNeedsToBeOverridden( )

Expectedexception

\LogicException

Expectedexceptionmessage

You must override the execute() method in the concrete command class.
public
# testRunWithInvalidOption( )

Expectedexception

\Symfony\Component\Console\Exception\InvalidOptionException

Expectedexceptionmessage

The "--bar" option does not exist.
public
# testRunReturnsIntegerExitCode( )
public
# testRunWithApplication( )
public
# testRunReturnsAlwaysInteger( )
public
# testSetCode( )
public
# getSetCodeBindToClosureTests( )
public
# testSetCodeBindToClosure( $previouslyBound, $expected )

Dataprovider

getSetCodeBindToClosureTests

Requires

PHP 5.4
public
# testSetCodeWithNonClosureCallable( )
public
# testSetCodeWithNonCallable( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Invalid callable provided to Command::setCode.
public
# callableMethodCommand( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
public
# testLegacyAsText( )

Group

legacy
public
# testLegacyAsXml( )

Group

legacy
Properties summary
protected static $fixturesPath
#
Peridot API documentation generated by ApiGen