forked from meadsteve/Behationary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
23 lines (17 loc) · 785 Bytes
/
bootstrap.php
File metadata and controls
23 lines (17 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// Include project autoloader, for our project dependencies.
include_once 'vendor/autoload.php';
// Load config file.
include_once 'MeadSteve/Behationary/Config.php';
$configPath = __DIR__ . "/config.php";
\MeadSteve\Behationary\Config::setPath($configPath);
$config = \MeadSteve\Behationary\Config::get();
// Setup Behat autoloader, to load files from the specified local behat installation.
$behatRootPath = $config->getBehatRootPath();
if ($behatRootPath != "") {
include_once $behatRootPath . '/vendor/autoload.php';
}
// Load the Behationary classes. We don't use an autoloader for this currently.
include_once 'MeadSteve/Behationary/Behationary.php';
include_once 'MeadSteve/Behationary/IndexedContext.php';
include_once 'MeadSteve/Behationary/StepPrettyfier.php';