Get an object instance of the passed command
public getCommandObject ( string $command ) : |
||
$command | string | |
Результат |
public function testGetHelpCommandObject() { $command = $this->telegram->getCommandObject('help'); $this->assertInstanceOf('Longman\\TelegramBot\\Commands\\UserCommands\\HelpCommand', $command); }