index-test-acceptance.php 507 B

1234567891011121314151617
  1. <?php
  2. // NOTE: Make sure this file is not accessable when deployed to production
  3. defined('YII_DEBUG') or define('YII_DEBUG', true);
  4. defined('YII_ENV') or define('YII_ENV', 'test');
  5. require(__DIR__ . '/../vendor/autoload.php');
  6. require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
  7. $config = yii\helpers\ArrayHelper::merge(
  8. require(__DIR__ . '/../config/web.php'),
  9. require(__DIR__ . '/../config/codeception/acceptance.php')
  10. );
  11. $application = new yii\web\Application($config);
  12. $application->run();