PHP Class Clinner\Command\Tests\CommandTest

Author: José Nahuel Cuesta Luengo ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: ncuesta/clinner

Méthodes publiques

Méthode Description
getDataSetsForGetOutputAsArray ( ) : array Data provider for getOutputAsArray
testConstructorDefaults ( )
testConstructorWithValues ( )
testGetArguments ( )
testGetErrorOutput ( )
testGetExitCode ( )
testGetName ( )
testGetOptionNoDefault ( )
testGetOptionWithDefault ( )
testGetOptions ( )
testGetOutput ( )
testGetOutputAsArray ( $output, $delimiter, $expectedResponse )
testGetPipedCommand ( )
testHasPipedCommandWithCommand ( )
testHasPipedCommandWithoutCommand ( )
testPipe ( )
testRun ( )
testSetArgumentsWithArray ( )
testSetArgumentsWithValueHolder ( )
testSetName ( )
testSetOption ( )
testSetOptionsWithArray ( )
testSetOptionsWithValueHolder ( )
testStaticCreateNoArgsNoOpts ( )
testStaticCreateWithArgsAndOpts ( )
testStaticFromStringManyCommands ( )
testStaticFromStringNoCommands ( )
testStaticFromStringOneCommand ( )
testToCommandStringNoArgsNoPipedCommands ( )
testToCommandStringNoArgsWithPipedCommands ( )
testToCommandStringWithArgsNoPipedCommands ( )
testToString ( )

Méthodes protégées

Méthode Description
_getPrivateProperty ( Command $object, string $name ) : mixed Get the value of a private property from a Command $object.
_setPrivateProperty ( Command $object, string $name, mixed $value ) Set a private property to a Command $object.

Method Details

_getPrivateProperty() protected méthode

Get the value of a private property from a Command $object.
protected _getPrivateProperty ( Command $object, string $name ) : mixed
$object Clinner\Command\Command The object to inspect.
$name string The private property name.
Résultat mixed

_setPrivateProperty() protected méthode

Set a private property to a Command $object.
protected _setPrivateProperty ( Command $object, string $name, mixed $value )
$object Clinner\Command\Command The object to update.
$name string The private property name.
$value mixed The new value for the property.

getDataSetsForGetOutputAsArray() public méthode

Data provider for getOutputAsArray
public getDataSetsForGetOutputAsArray ( ) : array
Résultat array

testConstructorDefaults() public méthode

testConstructorWithValues() public méthode

testGetArguments() public méthode

public testGetArguments ( )

testGetErrorOutput() public méthode

public testGetErrorOutput ( )

testGetExitCode() public méthode

public testGetExitCode ( )

testGetName() public méthode

public testGetName ( )

testGetOptionNoDefault() public méthode

testGetOptionWithDefault() public méthode

testGetOptions() public méthode

public testGetOptions ( )

testGetOutput() public méthode

public testGetOutput ( )

testGetOutputAsArray() public méthode

public testGetOutputAsArray ( $output, $delimiter, $expectedResponse )

testGetPipedCommand() public méthode

public testGetPipedCommand ( )

testHasPipedCommandWithCommand() public méthode

testHasPipedCommandWithoutCommand() public méthode

testPipe() public méthode

public testPipe ( )

testRun() public méthode

public testRun ( )

testSetArgumentsWithArray() public méthode

testSetArgumentsWithValueHolder() public méthode

testSetName() public méthode

public testSetName ( )

testSetOption() public méthode

public testSetOption ( )

testSetOptionsWithArray() public méthode

testSetOptionsWithValueHolder() public méthode

testStaticCreateNoArgsNoOpts() public méthode

testStaticCreateWithArgsAndOpts() public méthode

testStaticFromStringManyCommands() public méthode

testStaticFromStringNoCommands() public méthode

testStaticFromStringOneCommand() public méthode

testToCommandStringNoArgsNoPipedCommands() public méthode

testToCommandStringNoArgsWithPipedCommands() public méthode

testToCommandStringWithArgsNoPipedCommands() public méthode

testToString() public méthode

public testToString ( )