Longman\TelegramBot\Tests\Unit\ConversationTest::setUp PHP Method

setUp() protected method

setUp
protected setUp ( )
    protected function setUp()
    {
        $credentials = ['host' => PHPUNIT_DB_HOST, 'database' => PHPUNIT_DB_NAME, 'user' => PHPUNIT_DB_USER, 'password' => PHPUNIT_DB_PASS];
        $this->telegram = new Telegram('apikey', 'testbot');
        $this->telegram->enableMySql($credentials);
        //Make sure we start with an empty DB for each test.
        TestHelpers::emptyDB($credentials);
    }