Skip to content

Commit a3f0fda

Browse files
authored
Merge pull request KnpLabs#632 from acrobat/phpunit-autoload-fix
Use composer 'autoload-dev' to setup autoload for phpunit tests
2 parents 6cc4ce5 + 23aaeda commit a3f0fda

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"autoload": {
3838
"psr-4": { "Github\\": "lib/Github/" }
3939
},
40+
"autoload-dev": {
41+
"psr-4": { "Github\\Tests\\": "test/Github/Tests/"}
42+
},
4043
"minimum-stability": "dev",
4144
"prefer-stable": true,
4245
"extra": {

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
processIsolation="false"
1010
stopOnFailure="false"
1111
syntaxCheck="false"
12-
bootstrap="test/bootstrap.php"
12+
bootstrap="vendor/autoload.php"
1313
>
1414
<testsuites>
1515
<testsuite name="php-github-api Test Suite">

test/bootstrap.php

-18
This file was deleted.

0 commit comments

Comments
 (0)