forked from etrepat/baum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.php
38 lines (29 loc) · 865 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
37
38
<?php
/**
* Register composer auto loader
*/
require __DIR__.'/vendor/autoload.php';
/**
* Initialize Capsule
*/
$capsule = new Illuminate\Database\Capsule\Manager;
$capsule->addConnection(require(__DIR__.'/tests/config/database.php'));
$capsule->setEventDispatcher(new Illuminate\Events\Dispatcher(new Illuminate\Container\Container));
$capsule->bootEloquent();
$capsule->setAsGlobal();
/**
* Autoload required libraries
*/
$__autoload_paths = array('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';