8000 Merge pull request #169 from lcobucci/add-dev-namespace-to-autoloader · reactphp/event-loop@b2a3488 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2a3488

Browse files
authored
Merge pull request #169 from lcobucci/add-dev-namespace-to-autoloader
Simplify test bootstrap by using dev autoloader
2 parents 707a875 + 4f2108e commit b2a3488

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@
1717
"psr-4": {
1818
"React\\EventLoop\\": "src"
1919
}
20+
},
21+
"autoload-dev": {
22+
"psr-4": {
23+
"React\\Tests\\EventLoop\\": "tests"
24+
}
2025
}
2126
}

tests/bootstrap.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<?php
22

3-
$loader = @include __DIR__ . '/../vendor/autoload.php';
4-
if (!$loader) {
5-
$loader = require __DIR__ . '/../../../../vendor/autoload.php';
6-
}
7-
$loader->addPsr4('React\\Tests\\EventLoop\\', __DIR__);
8-
93
if (!defined('SIGUSR1')) {
104
define('SIGUSR1', 1);
115
}

0 commit comments

Comments
 (0)
0