<?php
error_reporting(E_ALL | E_STRICT);

$root    = realpath(dirname(__FILE__));
$library = "$root/library";
$tests   = "$root/tests";
var_dump($library);

$path = array(
    $library,
    $tests,
    get_include_path(),
);
set_include_path(implode(PATH_SEPARATOR, $path));


require_once 'Vmwarephp/Autoloader.php';
$autoloader = new Autoloader();
$autoloader->register();
<?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();
Test bootstrap now loads php Mockery.
Test bootstrap now loads php Mockery.
