16 Zeilen
548B

  1. <?php
  2. defined('YII_DEBUG') or define('YII_DEBUG', true);
  3. defined('YII_ENV') or define('YII_ENV', 'test');
  4. defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(__DIR__))));
  5. require_once(YII_APP_BASE_PATH . '/vendor/autoload.php');
  6. require_once(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php');
  7. require_once(YII_APP_BASE_PATH . '/common/config/bootstrap.php');
  8. // set correct script paths
  9. $_SERVER['SERVER_NAME'] = 'localhost';
  10. $_SERVER['SERVER_PORT'] = '80';
  11. Yii::setAlias('@tests', dirname(dirname(__DIR__)));