This commit is contained in:
resurtm
2017-01-11 22:42:15 +06:00
parent a3434504e6
commit 1cb60f0740
78 changed files with 354 additions and 290 deletions

View File

@ -4,17 +4,17 @@ define('YII_ENV', 'test');
defined('YII_DEBUG') or define('YII_DEBUG', true);
// Search for autoload, since performance is irrelevant and usability isn't!
$dir = __DIR__.'/../';
while (!file_exists($dir.'/vendor/autoload.php')) {
$dir = __DIR__ . '/../';
while (!file_exists($dir . '/vendor/autoload.php')) {
if ($dir == dirname($dir)) {
throw new \Exception('Failed to locate autoload.php');
}
$dir = dirname($dir);
}
$vendor = $dir.'/vendor';
$vendor = $dir . '/vendor';
define('VENDOR_DIR', $vendor);
require_once $vendor.'/autoload.php';
require $vendor.'/yiisoft/yii2/Yii.php';
require_once $vendor . '/autoload.php';
require $vendor . '/yiisoft/yii2/Yii.php';