Skip to content

Commit e306e75

Browse files
bekh6exthiemowmde
authored andcommitted
Add autoload-dev composer section (#724)
* Add autoload-dev composer section * Remove redundant code from bootstrap for tests
1 parent 906402b commit e306e75

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

composer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141
"Wikibase\\DataModel\\": "src/"
4242
}
4343
},
44+
"autoload-dev": {
45+
"psr-4": {
46+
"Wikibase\\DataModel\\Fixtures\\": "tests/fixtures",
47+
"Wikibase\\DataModel\\Tests\\": [
48+
"tests/unit",
49+
"tests/component"
50+
]
51+
}
52+
},
4453
"extra": {
4554
"branch-alias": {
4655
"dev-master": "7.0.x-dev"

tests/bootstrap.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,4 @@
1818
die( 'You need to install this package with Composer before you can run the tests' );
1919
}
2020

21-
$classLoader = require __DIR__ . '/../vendor/autoload.php';
22-
23-
$classLoader->addPsr4( 'Wikibase\\DataModel\\Tests\\', __DIR__ . '/unit/' );
24-
$classLoader->addPsr4( 'Wikibase\\DataModel\\Fixtures\\', __DIR__ . '/fixtures/' );
25-
26-
unset( $classLoader );
21+
require __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)