<?php

/*
This file will automatically be included before EACH test if -bf/--bootstrap-file argument is not used.

Use it to initialize the tested code, add autoloader, require mandatory file, or anything that needs to be done before EACH test.

More information on documentation:
[en] http://docs.atoum.org/en/latest/chapter3.html#bootstrap-file
[fr] http://docs.atoum.org/fr/latest/lancement_des_tests.html#fichier-de-bootstrap
*/


// composer
require __DIR__ . '/vendor/autoload.php';

use Illuminate\Database\Capsule\Manager as Capsule;

$conn = new Capsule();

$conn->addConnection([
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'aud',
    'username'  => 'homestead',
    'password'  => 'secret',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci'
]);

$conn->bootEloquent();

/*
function routes()
{
    return include './routes/routes.php';
}
*/

