Longman\TelegramBot\Tests\Unit\Commands\CommandTestCase::setUp PHP Method

setUp() public method

setUp
public setUp ( )
    public function setUp()
    {
        $this->telegram = new Telegram('apikey', 'testbot');
        $this->telegram->addCommandsPath(BASE_COMMANDS_PATH . '/UserCommands');
        $this->telegram->getCommandsList();
    }

Usage Example

 /**
  * setUp
  */
 public function setUp()
 {
     parent::setUp();
     $this->command = new EchoCommand($this->telegram);
 }