index-test-acceptance.php 507 Bytes
Newer Older
Mark committed
1 2
<?php

3
// NOTE: Make sure this file is not accessable when deployed to production
Mark committed
4

5
defined('YII_DEBUG') or define('YII_DEBUG', true);
Mark committed
6 7
defined('YII_ENV') or define('YII_ENV', 'test');

8 9
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
Mark committed
10 11

$config = yii\helpers\ArrayHelper::merge(
12
	require(__DIR__ . '/../config/web.php'),
Mark committed
13 14 15 16 17
	require(__DIR__ . '/../config/codeception/acceptance.php')
);

$application = new yii\web\Application($config);
$application->run();