Skip to content

Commit

Permalink
simplified tests/_bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 19, 2016
1 parent 537fdd1 commit 95c5736
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
"hidev\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"hidev\\tests\\": "tests"
}
},
"bin": [
"bin/hidev"
]
Expand Down
9 changes: 2 additions & 7 deletions tests/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

error_reporting(-1);

define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true);
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
require_once __DIR__ . '/../vendor/autoload.php';
Yii::setAlias('@hidev', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');
Yii::setAlias('@hidev/bin', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin');
Yii::setAlias('@hidev/tests', __DIR__);

Yii::setAlias('@hidev', dirname(__DIR__));

0 comments on commit 95c5736

Please sign in to comment.