Mark
11 years ago
8 changed files with 144 additions and 8 deletions
@ -1,3 +1,6 @@
|
||||
<?php |
||||
|
||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
Yii::setAlias('@tests', __DIR__ . '/../'); |
||||
|
||||
new yii\web\Application(require(__DIR__ . '/_config.php')); |
||||
|
@ -1,3 +1,6 @@
|
||||
<?php |
||||
|
||||
require_once(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php'); |
||||
Yii::setAlias('@tests', __DIR__ . '/../'); |
||||
|
||||
new yii\web\Application(require(__DIR__ . '/_config.php')); |
||||
|
@ -1,3 +1,5 @@
|
||||
<?php |
||||
|
||||
// add unit testing specific bootstrap code here |
||||
#aspect-mock should be included only once. Codeception calls this bootstrap file per each test file. |
||||
require_once __DIR__ . '/aspect_mock.php'; |
||||
Yii::setAlias('@tests', __DIR__ . '/../'); |
||||
|
@ -0,0 +1,16 @@
|
||||
<?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