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 InputOptionTest

PHPUnit_Framework_TestCase
Extended by Symfony\Component\Console\Tests\Input\InputOptionTest
Namespace: Symfony\Component\Console\Tests\Input
Located at Tests/Input/InputOptionTest.php
Methods summary
public
# testConstructor( )
public
# testArrayModeWithoutValue( )

Expectedexception

\InvalidArgumentException

Expectedexceptionmessage

Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.
public
# testShortcut( )
public
# testModes( )
public
# testInvalidModes( $mode )

Dataprovider

provideInvalidModes
public
# provideInvalidModes( )
public
# testEmptyNameIsInvalid( )

Expectedexception

\InvalidArgumentException
public
# testDoubleDashNameIsInvalid( )

Expectedexception

\InvalidArgumentException
public
# testSingleDashOptionIsInvalid( )

Expectedexception

\InvalidArgumentException
public
# testIsArray( )
public
# testGetDescription( )
public
# testGetDefault( )
public
# testSetDefault( )
public
# testDefaultValueWithValueNoneMode( )

Expectedexception

\LogicException

Expectedexceptionmessage

Cannot set a default value when using InputOption::VALUE_NONE mode.
public
# testDefaultValueWithIsArrayMode( )

Expectedexception

\LogicException

Expectedexceptionmessage

A default value for an array option must be an array.
public
# testEquals( )
Peridot API documentation generated by ApiGen