You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
729 B
19 lines
729 B
<?php
|
|
/*
|
|
* This file bootstraps the test environment.
|
|
*/
|
|
error_reporting(E_ALL | E_STRICT);
|
|
|
|
if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
|
|
// dependencies were installed via composer - this is the main project
|
|
$classLoader = require __DIR__ . '/../../../vendor/autoload.php';
|
|
} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
|
|
// installed as a dependency in `vendor`
|
|
$classLoader = require __DIR__ . '/../../../../../autoload.php';
|
|
} else {
|
|
throw new Exception('Can\'t find autoload.php. Did you install dependencies via Composer?');
|
|
}
|
|
|
|
/* @var $classLoader \Composer\Autoload\ClassLoader */
|
|
$classLoader->add('Doctrine\\Tests\\', __DIR__ . '/../../');
|
|
unset($classLoader);
|
|
|