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

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$class string
$cmd Kraken\Runtime\Command\CommandInterface | PHPUnit_Framework_MockObject_MockObject
$core Kraken\Core\CoreInterface | PHPUnit_Framework_MockObject_MockObject
$manager Kraken\Runtime\RuntimeManagerInterface | PHPUnit_Framework_MockObject_MockObject
$project Kraken\Console\Server\Manager\ProjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$runtime Kraken\Runtime\RuntimeContainerInterface | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
createChannel ( string[] | null $methods = [] ) : Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject
createCommand ( array $context = [], array $methods = [] ) : Command | PHPUnit_Framework_MockObject_MockObject
createConfig ( string[] | null $data = [], string[] | null $methods = null ) : Kraken\Config\ConfigInterface | PHPUnit_Framework_MockObject_MockObject
createManager ( ) : Kraken\Runtime\RuntimeManagerInterface | PHPUnit_Framework_MockObject_MockObject
createProjectManager ( string[] | null $methods = [] ) : Kraken\Console\Server\Manager\ProjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
createRuntime ( string[] | null $methods = [] ) : Kraken\Runtime\RuntimeContainerInterface | PHPUnit_Framework_MockObject_MockObject
createSupervisor ( string[] | null $methods = [] ) : Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject
setUp ( )
testApiConstruct_DoesNotThrowException ( )
testApiConstructor_CreatesInstance ( )
testApiConstructor_SetsRuntimeInContext ( )
testApiConstructor_ThrowsException_WhenNoRuntimeIsPassed ( )
testApiDestruct_DoesNotThrowException ( )
testApiDestructor_DoesNotThrowException ( )

Method Details

createChannel() public method

public createChannel ( string[] | null $methods = [] ) : Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject

createCommand() public method

public createCommand ( array $context = [], array $methods = [] ) : Command | PHPUnit_Framework_MockObject_MockObject
$context array
$methods array
return Kraken\Runtime\Command\Command | PHPUnit_Framework_MockObject_MockObject

createConfig() public method

public createConfig ( string[] | null $data = [], string[] | null $methods = null ) : Kraken\Config\ConfigInterface | PHPUnit_Framework_MockObject_MockObject
$data string[] | null
$methods string[] | null
return Kraken\Config\ConfigInterface | PHPUnit_Framework_MockObject_MockObject

createManager() public method

public createManager ( ) : Kraken\Runtime\RuntimeManagerInterface | PHPUnit_Framework_MockObject_MockObject
return Kraken\Runtime\RuntimeManagerInterface | PHPUnit_Framework_MockObject_MockObject

createProjectManager() public method

public createProjectManager ( string[] | null $methods = [] ) : Kraken\Console\Server\Manager\ProjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Console\Server\Manager\ProjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

createRuntime() public method

public createRuntime ( string[] | null $methods = [] ) : Kraken\Runtime\RuntimeContainerInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Runtime\RuntimeContainerInterface | PHPUnit_Framework_MockObject_MockObject

createSupervisor() public method

public createSupervisor ( string[] | null $methods = [] ) : Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Supervision\SupervisorInterface | PHPUnit_Framework_MockObject_MockObject

setUp() public method

public setUp ( )

testApiConstruct_DoesNotThrowException() public method

testApiConstructor_CreatesInstance() public method

testApiConstructor_SetsRuntimeInContext() public method

testApiConstructor_ThrowsException_WhenNoRuntimeIsPassed() public method

testApiDestruct_DoesNotThrowException() public method

testApiDestructor_DoesNotThrowException() public method

Property Details

$class protected property

protected string $class
return string

$cmd protected property

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

$core protected property

protected CoreInterface,Kraken\Core|PHPUnit_Framework_MockObject_MockObject $core
return Kraken\Core\CoreInterface | PHPUnit_Framework_MockObject_MockObject

$manager protected property

protected RuntimeManagerInterface,Kraken\Runtime|PHPUnit_Framework_MockObject_MockObject $manager
return Kraken\Runtime\RuntimeManagerInterface | PHPUnit_Framework_MockObject_MockObject

$project protected property

protected ProjectManagerInterface,Kraken\Console\Server\Manager|PHPUnit_Framework_MockObject_MockObject $project
return Kraken\Console\Server\Manager\ProjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$runtime protected property

protected RuntimeContainerInterface,Kraken\Runtime|PHPUnit_Framework_MockObject_MockObject $runtime
return Kraken\Runtime\RuntimeContainerInterface | PHPUnit_Framework_MockObject_MockObject