bootstrap.php 530 B

123456789101112131415
  1. <?php
  2. // ensure we get report on all possible php errors
  3. error_reporting(-1);
  4. define('YII_ENABLE_ERROR_HANDLER', false);
  5. define('YII_DEBUG', true);
  6. $_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
  7. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  8. $composerAutoload = __DIR__ . '/../vendor/autoload.php';
  9. if (!is_file($composerAutoload))
  10. {
  11. die("Composer autoloader not found!");
  12. }
  13. require_once($composerAutoload);
  14. require_once(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
  15. Yii::setAlias('@mikemadisonweb/rabbitmq/tests', __DIR__);