forked from vadimcomanescu/vmwarephp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBootstrap.php
More file actions
33 lines (27 loc) · 731 Bytes
/
Bootstrap.php
File metadata and controls
33 lines (27 loc) · 731 Bytes
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
<?php
error_reporting(E_ALL | E_STRICT);
function includeProjectInPath() {
$root = realpath(dirname(__FILE__));
$library = "$root/library";
$tests = "$root/tests";
$path = array(
$library,
$tests,
get_include_path(),
);
set_include_path(implode(PATH_SEPARATOR, $path));
}
function loadMockery() {
require_once 'Mockery/Loader.php';
require_once 'Hamcrest/Hamcrest.php';
$loader = new Mockery\Loader;
$loader->register();
}
function enableProjectClassAutoloader() {
require_once 'Vmwarephp/Autoloader.php';
$autoloader = new \Vmwarephp\Autoloader;
$autoloader->register();
}
includeProjectInPath();
loadMockery();
enableProjectClassAutoloader();