Kraken\_Unit\Console\Server\_T\TCommand::createCommand PHP Method

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
    public function createCommand($context = [], $methods = [])
    {
        if ($this->class === '') {
            throw new Exception('Class not set');
        }
        if (!array_key_exists('runtime', $context)) {
            $context['runtime'] = $this->createRuntime();
        }
        $this->cmd = $this->getMock($this->class, $methods, [$context]);
        return $this->cmd;
    }