Documentation

TelegramTest 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
$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

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
expectedException

\Longman\TelegramBot\Exception\TelegramException

expectedExceptionMessage

Invalid API KEY defined!

Return values
mixed

testNewInstanceWithoutApiKeyParam()

public testNewInstanceWithoutApiKeyParam() : mixed
Tags
expectedException

\Longman\TelegramBot\Exception\TelegramException

expectedExceptionMessage

API KEY not defined!

Return values
mixed

setUp()

protected setUp() : mixed
Return values
mixed

skip64BitTest()

protected skip64BitTest() : mixed
Return values
mixed

tearDown()

protected tearDown() : mixed
Return values
mixed

Search results