TelegramTest
extends TestCase
in package
Tags
Table of Contents
- $dummy_api_key : string
- $custom_commands_paths : array<string|int, mixed>
- $telegram : Telegram
- testAddCustomCommandsPaths() : mixed
- testEnableAdmins() : mixed
- testGetApiKey() : mixed
- testGetBotUsername() : mixed
- testGetCommandsList() : mixed
- testNewInstanceWithInvalidApiKeyParam() : mixed
- testNewInstanceWithoutApiKeyParam() : mixed
- setUp() : mixed
- skip64BitTest() : mixed
- tearDown() : mixed
Properties
$dummy_api_key
public
static string
$dummy_api_key
= '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'
$custom_commands_paths
private
array<string|int, mixed>
$custom_commands_paths
= ['/tmp/php-telegram-bot-custom-commands-1', '/tmp/php-telegram-bot-custom-commands-2', '/tmp/php-telegram-bot-custom-commands-3']
A few dummy custom commands paths
$telegram
private
Telegram
$telegram
Methods
testAddCustomCommandsPaths()
public
testAddCustomCommandsPaths() : mixed
Return values
mixed —testEnableAdmins()
public
testEnableAdmins() : mixed
Return values
mixed —testGetApiKey()
public
testGetApiKey() : mixed
Return values
mixed —testGetBotUsername()
public
testGetBotUsername() : mixed
Return values
mixed —testGetCommandsList()
public
testGetCommandsList() : mixed
Return values
mixed —testNewInstanceWithInvalidApiKeyParam()
public
testNewInstanceWithInvalidApiKeyParam() : mixed
Tags
Return values
mixed —testNewInstanceWithoutApiKeyParam()
public
testNewInstanceWithoutApiKeyParam() : mixed
Tags
Return values
mixed —setUp()
protected
setUp() : mixed
Return values
mixed —skip64BitTest()
protected
skip64BitTest() : mixed
Return values
mixed —tearDown()
protected
tearDown() : mixed