PHP Class Kraken\_Unit\Console\Client\_T\TCommand

Inheritance: extends Kraken\Test\TUnit
Datei anzeigen Open project: kraken-php/framework

Protected Properties

Property Type Description
$class string
$cmd Kraken\Runtime\Command\CommandInterface | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
assertCommand ( Command $command, string $name, string $desc = "#(.*?)#si", mixed[] $args = [], mixed[] $opts = [] )
createCommand ( string[] | null $methods = null ) : Command | PHPUnit_Framework_MockObject_MockObject
createInputMock ( string[] | null $methods = [] ) : Symfony\Component\Console\Input\InputInterface | PHPUnit_Framework_MockObject_MockObject
createOutputMock ( string[] | null $methods = [] ) : Symfony\Component\Console\Output\OutputInterface | PHPUnit_Framework_MockObject_MockObject
setUp ( )
testApiConstruct_DoesNotThrowException ( )
testApiConstructor_CreatesInstance ( )
testApiDestruct_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )

Method Details

assertCommand() public method

public assertCommand ( Command $command, string $name, string $desc = "#(.*?)#si", mixed[] $args = [], mixed[] $opts = [] )
$command Kraken\Console\Client\Command\Command
$name string
$desc string
$args mixed[]
$opts mixed[]

createCommand() public method

public createCommand ( string[] | null $methods = null ) : Command | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Console\Client\Command\Command | PHPUnit_Framework_MockObject_MockObject

createInputMock() public method

public createInputMock ( string[] | null $methods = [] ) : Symfony\Component\Console\Input\InputInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Symfony\Component\Console\Input\InputInterface | PHPUnit_Framework_MockObject_MockObject

createOutputMock() public method

public createOutputMock ( string[] | null $methods = [] ) : Symfony\Component\Console\Output\OutputInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Symfony\Component\Console\Output\OutputInterface | PHPUnit_Framework_MockObject_MockObject

setUp() public method

public setUp ( )

testApiConstruct_DoesNotThrowException() public method

testApiConstructor_CreatesInstance() public method

testApiDestruct_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

Property Details

$class protected_oe property

protected string $class
return string

$cmd protected_oe property

protected CommandInterface,Kraken\Runtime\Command|PHPUnit_Framework_MockObject_MockObject $cmd
return Kraken\Runtime\Command\CommandInterface | PHPUnit_Framework_MockObject_MockObject