Skip to content

Commit

Permalink
Merge pull request #169 from lcobucci/add-dev-namespace-to-autoloader
Browse files Browse the repository at this point in the history
Simplify test bootstrap by using dev autoloader
  • Loading branch information
WyriHaximus committed Jun 26, 2018
2 parents 707a875 + 4f2108e commit b2a3488
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
"psr-4": {
"React\\EventLoop\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"React\\Tests\\EventLoop\\": "tests"
}
}
}
6 changes: 0 additions & 6 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<?php

$loader = @include __DIR__ . '/../vendor/autoload.php';
if (!$loader) {
$loader = require __DIR__ . '/../../../../vendor/autoload.php';
}
$loader->addPsr4('React\\Tests\\EventLoop\\', __DIR__);

if (!defined('SIGUSR1')) {
define('SIGUSR1', 1);
}
Expand Down

0 comments on commit b2a3488

Please sign in to comment.