forked from gazsp/baum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
36 lines (30 loc) · 875 Bytes
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Register composer auto loader.
*/
require __DIR__.'/vendor/autoload.php';
/*
* Initialize Capsule
*/
$config = require __DIR__.'/tests/config/database.php';
$capsule = new Illuminate\Database\Capsule\Manager;
$capsule->addConnection($config);
$capsule->setEventDispatcher(new Illuminate\Events\Dispatcher(new Illuminate\Container\Container));
$capsule->bootEloquent();
$capsule->setAsGlobal();
/*
* Autoload required libraries
*/
$__autoload_paths = ['models', 'migrators', 'seeders'];
foreach ($__autoload_paths as $path) {
foreach (glob(__DIR__."/tests/$path/*.php") as $dep) {
require_once $dep;
}
}
/**
* Require test helpers.
*/
require __DIR__.'/tests/suite/support.php';
require __DIR__.'/tests/suite/BaumTestCase.php';
require __DIR__.'/tests/suite/CategoryTestCase.php';
require __DIR__.'/tests/suite/ClusterTestCase.php';