forked from unikent/baum
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathbootstrap.php
26 lines (21 loc) · 878 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
<?php
require __DIR__.'/vendor/autoload.php';
// Boot Eloquent, we configure the database in BaumTestCase::getEnvironmentSetUp
$capsule = new Illuminate\Database\Capsule\Manager();
$capsule->setEventDispatcher(new Illuminate\Events\Dispatcher(new Illuminate\Container\Container()));
$capsule->bootEloquent();
$capsule->setAsGlobal();
// Autoload required classes
$paths = ['models', 'migrators', 'seeders'];
foreach ($paths as $path) {
foreach (glob(__DIR__."/tests/$path/*.php") as $dep) {
require_once $dep;
}
}
// Helpers / base classes
require __DIR__.'/tests/suite/support.php';
require __DIR__.'/tests/suite/BaumTestCase.php';
require __DIR__.'/tests/suite/CategoryTestCase.php';
require __DIR__.'/tests/suite/OrderedCategoryTestCase.php';
require __DIR__.'/tests/suite/ClusterTestCase.php';
require __DIR__.'/tests/suite/OrderedClusterTestCase.php';