Merge pull request #427 from localheinz/fix/bootstrapping

Fix: Simplify test bootstrapping
This commit is contained in:
Denis Sokolov
2016-07-24 22:59:35 +03:00
committed by GitHub
2 changed files with 7 additions and 5 deletions
+5
View File
@@ -28,6 +28,11 @@
"Whoops\\": "src/Whoops/"
}
},
"autoload-dev": {
"psr-4": {
"Whoops\\": "tests/Whoops/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
+2 -5
View File
@@ -6,8 +6,5 @@
* Bootstraper for PHPUnit tests.
*/
error_reporting(E_ALL | E_STRICT);
// Can be required more than once to allow running
// phpunit installed with Composer
// http://stackoverflow.com/a/12798022
$loader = require __DIR__ . '/../vendor/autoload.php';
$loader->add('Whoops\\', __DIR__);
require_once __DIR__ . '/../vendor/autoload.php';