Documentation

InputOptionTest extends TestCase
in package

Table of Contents

Methods

provideInvalidModes()  : mixed
testArrayModeWithoutValue()  : mixed
testConstructor()  : mixed
testDefaultValueWithIsArrayMode()  : mixed
testDefaultValueWithValueNoneMode()  : mixed
testDoubleDashNameIsInvalid()  : mixed
testEmptyNameIsInvalid()  : mixed
testEquals()  : mixed
testGetDefault()  : mixed
testGetDescription()  : mixed
testInvalidModes()  : mixed
testIsArray()  : mixed
testModes()  : mixed
testSetDefault()  : mixed
testShortcut()  : mixed
testSingleDashOptionIsInvalid()  : mixed

Methods

testArrayModeWithoutValue()

public testArrayModeWithoutValue() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.

testDefaultValueWithIsArrayMode()

public testDefaultValueWithIsArrayMode() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

A default value for an array option must be an array.

testDefaultValueWithValueNoneMode()

public testDefaultValueWithValueNoneMode() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

Cannot set a default value when using InputOption::VALUE_NONE mode.

testDoubleDashNameIsInvalid()

public testDoubleDashNameIsInvalid() : mixed
Tags
expectedException

\InvalidArgumentException

testEmptyNameIsInvalid()

public testEmptyNameIsInvalid() : mixed
Tags
expectedException

\InvalidArgumentException

testInvalidModes()

public testInvalidModes(mixed $mode) : mixed
Parameters
$mode : mixed
Tags
dataProvider

provideInvalidModes

testSingleDashOptionIsInvalid()

public testSingleDashOptionIsInvalid() : mixed
Tags
expectedException

\InvalidArgumentException


        
On this page

Search results