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

  • ArgvInputTest
  • ArrayInputTest
  • InputArgumentTest
  • InputDefinitionTest
  • InputOptionTest
  • InputTest
  • StringInputTest
  • Overview
  • Namespace
  • Class

Class InputDefinitionTest

PHPUnit_Framework_TestCase
Extended by Symfony\Component\Console\Tests\Input\InputDefinitionTest
Namespace: Symfony\Component\Console\Tests\Input
Located at Tests/Input/InputDefinitionTest.php
Methods summary
public static
# setUpBeforeClass( )
public
# testConstructorArguments( )
public
# testConstructorOptions( )
public
# testSetArguments( )
public
# testAddArguments( )
public
# testAddArgument( )
public
# testArgumentsMustHaveDifferentNames( )

Expectedexception

\LogicException

Expectedexceptionmessage

An argument with name "foo" already exists.
public
# testArrayArgumentHasToBeLast( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot add an argument after an array argument.
public
# testRequiredArgumentCannotFollowAnOptionalOne( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot add a required argument after an optional one.
public
# testGetArgument( )
public
# testGetInvalidArgument( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

The "bar" argument does not exist.
public
# testHasArgument( )
public
# testGetArgumentRequiredCount( )
public
# testGetArgumentCount( )
public
# testGetArgumentDefaults( )
public
# testSetOptions( )
public
# testSetOptionsClearsOptions( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

The "-f" option does not exist.
public
# testAddOptions( )
public
# testAddOption( )
public
# testAddDuplicateOption( )

Expectedexception

\LogicException

Expectedexceptionmessage

An option named "foo" already exists.
public
# testAddDuplicateShortcutOption( )

Expectedexception

\LogicException

Expectedexceptionmessage

An option with shortcut "f" already exists.
public
# testGetOption( )
public
# testGetInvalidOption( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

The "--bar" option does not exist.
public
# testHasOption( )
public
# testHasShortcut( )
public
# testGetOptionForShortcut( )
public
# testGetOptionForMultiShortcut( )
public
# testGetOptionForInvalidShortcut( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

The "-l" option does not exist.
public
# testGetOptionDefaults( )
public
# testGetSynopsis( Symfony\Component\Console\Input\InputDefinition $definition, $expectedSynopsis, $message = null )

Dataprovider

getGetSynopsisData
public
# getGetSynopsisData( )
public
# testGetShortSynopsis( )
public
# testLegacyAsText( )

Group

legacy
public
# testLegacyAsXml( )

Group

legacy
protected
# initializeArguments( )
protected
# initializeOptions( )
Properties summary
protected static $fixtures
#
protected $foo
#
protected $bar
#
protected $foo1
#
protected $foo2
#
Peridot API documentation generated by ApiGen