public function setUp()
 {
     Config::loadenv();
     $this->token = getenv('TEST_TOKEN');
     $this->username = getenv('TEST_USERNAME');
     $this->password = getenv('TEST_PASSWORD');
     $this->new_user = getenv('NEW_USER');
     $this->testId = 3;
     $this->emoji = new Emoji();
     $this->client = new Client();
     $this->url = "http://emojis4devs.herokuapp.com";
 }
Esempio n. 2
0
<?php

/**
* Created by Florence Okosun.
* Date: 11/1/2015
* Time: 11:31 AM
*/
use Florence\Config;
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule();
Config::loadenv();
$capsule->addConnection(['driver' => getenv('DRIVER'), 'host' => getenv('DB_HOST'), 'database' => getenv('DB_DATABASE'), 'username' => getenv('DB_USERNAME'), 'password' => getenv('DB_PASSWORD'), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '']);
$capsule->setAsGlobal();
$capsule->bootEloquent();