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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy