Advertisement
alpa_s

Untitled

Jun 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <?php
  2. // NOTE: Make sure this file is not accessible when deployed to production
  3. $start = microtime();
  4.  
  5. // Bootstraping tests environment
  6. require(__DIR__ . '/../../tests/bootstrap.php');
  7.  
  8. // TEST ENV
  9. defined('YII_DEBUG') or define('YII_DEBUG', false);
  10. defined('YII_ENV') or define('YII_ENV', 'test');
  11. defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(__DIR__)));
  12.  
  13. // Environment
  14. require(__DIR__ . '/../../common/env.php');
  15.  
  16. // Yii
  17. require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
  18.  
  19. // Bootstrap application
  20. require(__DIR__ . '/../../common/config/bootstrap.php');
  21. require(__DIR__ . '/../config/bootstrap.php');
  22.  
  23. $config = require(__DIR__ . '/../../tests/codeception/config/frontend/acceptance.php');
  24.  
  25. $end = microtime() - $start;
  26.  
  27. echo "Finished: {$end}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement