getCommandsList() public method

Get commands list
public getCommandsList ( ) : array
return array $commands
コード例 #1
0
 /**
  * setUp
  */
 public function setUp()
 {
     $this->telegram = new Telegram('apikey', 'testbot');
     $this->telegram->addCommandsPath(BASE_COMMANDS_PATH . '/UserCommands');
     $this->telegram->getCommandsList();
 }
コード例 #2
0
 /**
  * @test
  */
 public function getCommandsList()
 {
     $commands = $this->telegram->getCommandsList();
     $this->assertInternalType('array', $commands);
     $this->assertNotCount(0, $commands);
 }