Skip to content

Commit 95c5736

Browse files
committed
simplified tests/_bootstrap
1 parent 537fdd1 commit 95c5736

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
"hidev\\": "src"
5858
}
5959
},
60+
"autoload-dev": {
61+
"psr-4": {
62+
"hidev\\tests\\": "tests"
63+
}
64+
},
6065
"bin": [
6166
"bin/hidev"
6267
]

tests/_bootstrap.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111

1212
error_reporting(-1);
1313

14-
define('YII_ENABLE_ERROR_HANDLER', false);
15-
define('YII_DEBUG', true);
16-
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
17-
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
1814
require_once __DIR__ . '/../vendor/autoload.php';
19-
Yii::setAlias('@hidev', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');
20-
Yii::setAlias('@hidev/bin', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin');
21-
Yii::setAlias('@hidev/tests', __DIR__);
15+
16+
Yii::setAlias('@hidev', dirname(__DIR__));

0 commit comments

Comments
 (0)