2013-12-02 19:23:58 +08:00
|
|
|
<?php
|
|
|
|
|
2013-12-18 13:40:52 +08:00
|
|
|
// NOTE: Make sure this file is not accessible when deployed to production
|
2013-12-29 04:04:08 +08:00
|
|
|
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
|
2014-03-16 12:46:16 +08:00
|
|
|
die('You are not allowed to access this file.');
|
2013-12-29 04:04:08 +08:00
|
|
|
}
|
2013-12-02 19:23:58 +08:00
|
|
|
|
2013-12-17 07:27:33 +08:00
|
|
|
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
2013-12-02 19:23:58 +08:00
|
|
|
defined('YII_ENV') or define('YII_ENV', 'test');
|
|
|
|
|
2013-12-17 07:27:33 +08:00
|
|
|
require(__DIR__ . '/../vendor/autoload.php');
|
2014-01-11 10:58:50 +08:00
|
|
|
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
|
2013-12-02 19:23:58 +08:00
|
|
|
|
2014-08-15 07:30:47 +08:00
|
|
|
$config = require(__DIR__ . '/../tests/codeception/acceptance/_config.php');
|
2013-12-02 19:23:58 +08:00
|
|
|
|
2013-12-18 13:40:52 +08:00
|
|
|
(new yii\web\Application($config))->run();
|