Mark
11 years ago
8 changed files with 23 additions and 53 deletions
@ -1,6 +1,3 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php'); |
|
||||||
Yii::setAlias('@tests', __DIR__ . '/../'); |
|
||||||
|
|
||||||
new yii\web\Application(require(__DIR__ . '/_config.php')); |
new yii\web\Application(require(__DIR__ . '/_config.php')); |
||||||
|
@ -1,6 +1,3 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php'); |
|
||||||
Yii::setAlias('@tests', __DIR__ . '/../'); |
|
||||||
|
|
||||||
new yii\web\Application(require(__DIR__ . '/_config.php')); |
new yii\web\Application(require(__DIR__ . '/_config.php')); |
||||||
|
@ -1,5 +1,3 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
#aspect-mock should be included only once. Codeception calls this bootstrap file per each test file. |
// add unit testing specific bootstrap code here |
||||||
require_once __DIR__ . '/aspect_mock.php'; |
|
||||||
Yii::setAlias('@tests', __DIR__ . '/../'); |
|
||||||
|
@ -1,16 +0,0 @@ |
|||||||
<?php |
|
||||||
|
|
||||||
$kernel = AspectMock\Kernel::getInstance(); |
|
||||||
$kernel->init([ |
|
||||||
'debug' => true, |
|
||||||
'excludePaths' => [ |
|
||||||
__DIR__.'/../tests', |
|
||||||
__DIR__.'/../mails', |
|
||||||
__DIR__.'/../runtime', |
|
||||||
__DIR__.'/../config', |
|
||||||
__DIR__.'/../controllers', |
|
||||||
__DIR__.'/../assets', |
|
||||||
], |
|
||||||
]); |
|
||||||
|
|
||||||
$kernel->loadFile(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php'); |
|
Loading…
Reference in new issue