Documentation

CommandTest extends TestCase
in package

Table of Contents

Properties

$fixturesPath  : mixed

Methods

callableMethodCommand()  : mixed
getSetCodeBindToClosureTests()  : mixed
provideInvalidCommandNames()  : mixed
setUpBeforeClass()  : mixed
testAddArgument()  : mixed
testAddGetUsages()  : mixed
testAddOption()  : mixed
testCommandNameCannotBeEmpty()  : mixed
testConstructor()  : mixed
testExecuteMethodNeedsToBeOverridden()  : mixed
testGetHelper()  : mixed
testGetHelperWithoutHelperSet()  : mixed
testGetNamespaceGetNameSetName()  : mixed
testGetProcessedHelp()  : mixed
testGetSetAliases()  : mixed
testGetSetDescription()  : mixed
testGetSetHelp()  : mixed
testGetSynopsis()  : mixed
testInvalidCommandNames()  : mixed
testMergeApplicationDefinition()  : mixed
testMergeApplicationDefinitionWithoutArgsThenWithArgsAddsArgs()  : mixed
testRunInteractive()  : mixed
testRunNonInteractive()  : mixed
testRunReturnsAlwaysInteger()  : mixed
testRunReturnsIntegerExitCode()  : mixed
testRunWithApplication()  : mixed
testRunWithInvalidOption()  : mixed
testRunWithProcessTitle()  : mixed
testSetAliasesNull()  : mixed
testSetApplication()  : mixed
testSetApplicationNull()  : mixed
testSetCode()  : mixed
testSetCodeBindToClosure()  : mixed
testSetCodeWithNonClosureCallable()  : mixed
testSetCodeWithStaticClosure()  : mixed
testSetGetDefinition()  : mixed
testSetHidden()  : mixed
createClosure()  : mixed

Properties

Methods

getSetCodeBindToClosureTests()

public getSetCodeBindToClosureTests() : mixed

provideInvalidCommandNames()

public provideInvalidCommandNames() : mixed

setUpBeforeClass()

public static setUpBeforeClass() : mixed

testAddGetUsages()

public testAddGetUsages() : mixed

testCommandNameCannotBeEmpty()

public testCommandNameCannotBeEmpty() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

The command defined in "Symfony\Component\Console\Command\Command" cannot have an empty name.

testExecuteMethodNeedsToBeOverridden()

public testExecuteMethodNeedsToBeOverridden() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

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

testGetHelperWithoutHelperSet()

public testGetHelperWithoutHelperSet() : mixed
Tags
expectedException

\LogicException

expectedExceptionMessage

Cannot retrieve helper "formatter" because there is no HelperSet defined.

testGetNamespaceGetNameSetName()

public testGetNamespaceGetNameSetName() : mixed

testGetProcessedHelp()

public testGetProcessedHelp() : mixed

testGetSetAliases()

public testGetSetAliases() : mixed

testGetSetDescription()

public testGetSetDescription() : mixed

testInvalidCommandNames()

public testInvalidCommandNames(mixed $name) : mixed
Parameters
$name : mixed
Tags
dataProvider

provideInvalidCommandNames

testMergeApplicationDefinition()

public testMergeApplicationDefinition() : mixed

testMergeApplicationDefinitionWithoutArgsThenWithArgsAddsArgs()

public testMergeApplicationDefinitionWithoutArgsThenWithArgsAddsArgs() : mixed

testRunInteractive()

public testRunInteractive() : mixed

testRunNonInteractive()

public testRunNonInteractive() : mixed

testRunReturnsAlwaysInteger()

public testRunReturnsAlwaysInteger() : mixed

testRunReturnsIntegerExitCode()

public testRunReturnsIntegerExitCode() : mixed

testRunWithApplication()

public testRunWithApplication() : mixed

testRunWithInvalidOption()

public testRunWithInvalidOption() : mixed
Tags
expectedException

\Symfony\Component\Console\Exception\InvalidOptionException

expectedExceptionMessage

The "--bar" option does not exist.

testRunWithProcessTitle()

public testRunWithProcessTitle() : mixed

testSetAliasesNull()

public testSetAliasesNull() : mixed

testSetApplication()

public testSetApplication() : mixed

testSetApplicationNull()

public testSetApplicationNull() : mixed

testSetCodeBindToClosure()

public testSetCodeBindToClosure(mixed $previouslyBound, mixed $expected) : mixed
Parameters
$previouslyBound : mixed
$expected : mixed
Tags
dataProvider

getSetCodeBindToClosureTests

testSetCodeWithNonClosureCallable()

public testSetCodeWithNonClosureCallable() : mixed

testSetCodeWithStaticClosure()

public testSetCodeWithStaticClosure() : mixed

testSetGetDefinition()

public testSetGetDefinition() : mixed

createClosure()

private static createClosure() : mixed

        
On this page

Search results