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

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
    public function createCommand($methods = null)
    {
        if ($this->class === '') {
            throw new Exception('Class not set');
        }
        $channel = $this->getMock(ChannelInterface::class, [], [], '', false);
        $receiver = 'default';
        $this->cmd = $this->getMock($this->class, $methods, [$channel, $receiver]);
        return $this->cmd;
    }