getCommandsList() public method

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