PHP Class Clinner\Command\Tests\CommandTest

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

Public Methods

Method 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 ( )

Protected Methods

Method 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 method

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.
return mixed

_setPrivateProperty() protected method

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 method

Data provider for getOutputAsArray

testConstructorDefaults() public method

testConstructorWithValues() public method

testGetArguments() public method

public testGetArguments ( )

testGetErrorOutput() public method

public testGetErrorOutput ( )

testGetExitCode() public method

public testGetExitCode ( )

testGetName() public method

public testGetName ( )

testGetOptionNoDefault() public method

testGetOptionWithDefault() public method

testGetOptions() public method

public testGetOptions ( )

testGetOutput() public method

public testGetOutput ( )

testGetOutputAsArray() public method

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

testGetPipedCommand() public method

public testGetPipedCommand ( )

testHasPipedCommandWithCommand() public method

testHasPipedCommandWithoutCommand() public method

testPipe() public method

public testPipe ( )

testRun() public method

public testRun ( )

testSetArgumentsWithArray() public method

testSetArgumentsWithValueHolder() public method

testSetName() public method

public testSetName ( )

testSetOption() public method

public testSetOption ( )

testSetOptionsWithArray() public method

testSetOptionsWithValueHolder() public method

testStaticCreateNoArgsNoOpts() public method

testStaticCreateWithArgsAndOpts() public method

testStaticFromStringManyCommands() public method

testStaticFromStringNoCommands() public method

testStaticFromStringOneCommand() public method

testToCommandStringNoArgsNoPipedCommands() public method

testToCommandStringNoArgsWithPipedCommands() public method

testToCommandStringWithArgsNoPipedCommands() public method

testToString() public method

public testToString ( )