PHP Класс Clinner\Command\Tests\CommandTest

Автор: José Nahuel Cuesta Luengo ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
_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.

Описание методов

_getPrivateProperty() защищенный Метод

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.
Результат mixed

_setPrivateProperty() защищенный Метод

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() публичный Метод

Data provider for getOutputAsArray
public getDataSetsForGetOutputAsArray ( ) : array
Результат array

testConstructorDefaults() публичный Метод

testConstructorWithValues() публичный Метод

testGetArguments() публичный Метод

public testGetArguments ( )

testGetErrorOutput() публичный Метод

public testGetErrorOutput ( )

testGetExitCode() публичный Метод

public testGetExitCode ( )

testGetName() публичный Метод

public testGetName ( )

testGetOptionNoDefault() публичный Метод

testGetOptionWithDefault() публичный Метод

testGetOptions() публичный Метод

public testGetOptions ( )

testGetOutput() публичный Метод

public testGetOutput ( )

testGetOutputAsArray() публичный Метод

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

testGetPipedCommand() публичный Метод

public testGetPipedCommand ( )

testHasPipedCommandWithCommand() публичный Метод

testHasPipedCommandWithoutCommand() публичный Метод

testPipe() публичный Метод

public testPipe ( )

testRun() публичный Метод

public testRun ( )

testSetArgumentsWithArray() публичный Метод

testSetArgumentsWithValueHolder() публичный Метод

testSetName() публичный Метод

public testSetName ( )

testSetOption() публичный Метод

public testSetOption ( )

testSetOptionsWithArray() публичный Метод

testSetOptionsWithValueHolder() публичный Метод

testStaticCreateNoArgsNoOpts() публичный Метод

testStaticCreateWithArgsAndOpts() публичный Метод

testStaticFromStringManyCommands() публичный Метод

testStaticFromStringNoCommands() публичный Метод

testStaticFromStringOneCommand() публичный Метод

testToCommandStringNoArgsNoPipedCommands() публичный Метод

testToCommandStringNoArgsWithPipedCommands() публичный Метод

testToCommandStringWithArgsNoPipedCommands() публичный Метод

testToString() публичный Метод

public testToString ( )