Skip to content

Commit 4f2108e

Browse files
committed
Simplify test bootstrap by using dev autoloader
This is already being done in other repos of the organisation, let's make it more consistent then =)
1 parent 707a875 commit 4f2108e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

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)