Documentation

InputDefinitionTest extends TestCase
in package

Table of Contents

Properties

$bar  : mixed
$fixtures  : mixed
$foo  : mixed
$foo1  : mixed
$foo2  : mixed

Methods

getGetSynopsisData()  : mixed
setUpBeforeClass()  : mixed
testAddArgument()  : mixed
testAddArguments()  : mixed
testAddDuplicateOption()  : mixed
testAddDuplicateShortcutOption()  : mixed
testAddOption()  : mixed
testAddOptions()  : mixed
testArgumentsMustHaveDifferentNames()  : mixed
testArrayArgumentHasToBeLast()  : mixed
testConstructorArguments()  : mixed
testConstructorOptions()  : mixed
testGetArgument()  : mixed
testGetArgumentCount()  : mixed
testGetArgumentDefaults()  : mixed
testGetArgumentRequiredCount()  : mixed
testGetInvalidArgument()  : mixed
testGetInvalidOption()  : mixed
testGetOption()  : mixed
testGetOptionDefaults()  : mixed
testGetOptionForInvalidShortcut()  : mixed
testGetOptionForMultiShortcut()  : mixed
testGetOptionForShortcut()  : mixed
testGetShortSynopsis()  : mixed
testGetSynopsis()  : mixed
testHasArgument()  : mixed
testHasOption()  : mixed
testHasShortcut()  : mixed
testRequiredArgumentCannotFollowAnOptionalOne()  : mixed
testSetArguments()  : mixed
testSetOptions()  : mixed
testSetOptionsClearsOptions()  : mixed
initializeArguments()  : mixed
initializeOptions()  : mixed

Properties

Methods

testAddDuplicateOption()

public testAddDuplicateOption() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

An option named "foo" already exists.

testAddDuplicateShortcutOption()

public testAddDuplicateShortcutOption() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

An option with shortcut "f" already exists.

testArgumentsMustHaveDifferentNames()

public testArgumentsMustHaveDifferentNames() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

An argument with name "foo" already exists.

testArrayArgumentHasToBeLast()

public testArrayArgumentHasToBeLast() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

Cannot add an argument after an array argument.

testGetInvalidArgument()

public testGetInvalidArgument() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The "bar" argument does not exist.

testGetInvalidOption()

public testGetInvalidOption() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The "--bar" option does not exist.

testGetOptionForInvalidShortcut()

public testGetOptionForInvalidShortcut() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The "-l" option does not exist.

testGetSynopsis()

public testGetSynopsis(InputDefinition $definition, mixed $expectedSynopsis[, mixed $message = null ]) : mixed
Parameters
$definition : InputDefinition
$expectedSynopsis : mixed
$message : mixed = null
Tags
dataProvider

getGetSynopsisData

testRequiredArgumentCannotFollowAnOptionalOne()

public testRequiredArgumentCannotFollowAnOptionalOne() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

Cannot add a required argument after an optional one.

testSetOptionsClearsOptions()

public testSetOptionsClearsOptions() : mixed
Tags
expectedException

\InvalidArgumentException

expectedExceptionMessage

The "-f" option does not exist.


        
On this page

Search results