Documentation

CommandTest extends TestCase
in package

Tags
author

Avtandil Kikabidze akalongman@gmail.com

copyright

Avtandil Kikabidze akalongman@gmail.com

license

http://opensource.org/licenses/mit-license.php The MIT License (MIT)

link
https://github.com/php-telegram-bot/core

Table of Contents

$dummy_api_key  : string
$command_namespace  : string
$command_stub  : Command
$command_stub_with_config  : Command
$telegram  : Telegram
$telegram_with_config  : Telegram
setUp()  : mixed
testCommandConstructorNeedsTelegramObject()  : mixed
testCommandHasCorrectTelegramObject()  : mixed
testCommandSetUpdateAndMessage()  : mixed
testCommandWithConfigCorrectConfig()  : mixed
testCommandWithConfigNotEmptyConfig()  : mixed
testDefaultCommandDescription()  : mixed
testDefaultCommandEmptyConfig()  : mixed
testDefaultCommandIsEnabled()  : mixed
testDefaultCommandName()  : mixed
testDefaultCommandNeedsMysql()  : mixed
testDefaultCommandShownInHelp()  : mixed
testDefaultCommandUpdateNull()  : mixed
testDefaultCommandUsage()  : mixed
testDefaultCommandVersion()  : mixed
skip64BitTest()  : mixed

Properties

$dummy_api_key

public static string $dummy_api_key = '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'

$command_namespace

private string $command_namespace = 'Longman\TelegramBot\Commands\Command'

Methods

setUp()

public setUp() : mixed
Return values
mixed

testCommandConstructorNeedsTelegramObject()

public testCommandConstructorNeedsTelegramObject() : mixed
Return values
mixed

testCommandHasCorrectTelegramObject()

public testCommandHasCorrectTelegramObject() : mixed
Return values
mixed

testCommandSetUpdateAndMessage()

public testCommandSetUpdateAndMessage() : mixed
Return values
mixed

testCommandWithConfigCorrectConfig()

public testCommandWithConfigCorrectConfig() : mixed
Return values
mixed

testCommandWithConfigNotEmptyConfig()

public testCommandWithConfigNotEmptyConfig() : mixed
Return values
mixed

testDefaultCommandDescription()

public testDefaultCommandDescription() : mixed
Return values
mixed

testDefaultCommandEmptyConfig()

public testDefaultCommandEmptyConfig() : mixed
Return values
mixed

testDefaultCommandIsEnabled()

public testDefaultCommandIsEnabled() : mixed
Return values
mixed

testDefaultCommandName()

public testDefaultCommandName() : mixed
Return values
mixed

testDefaultCommandNeedsMysql()

public testDefaultCommandNeedsMysql() : mixed
Return values
mixed

testDefaultCommandShownInHelp()

public testDefaultCommandShownInHelp() : mixed
Return values
mixed

testDefaultCommandUpdateNull()

public testDefaultCommandUpdateNull() : mixed
Return values
mixed

testDefaultCommandUsage()

public testDefaultCommandUsage() : mixed
Return values
mixed

testDefaultCommandVersion()

public testDefaultCommandVersion() : mixed
Return values
mixed

skip64BitTest()

protected skip64BitTest() : mixed
Return values
mixed

Search results