Skip to content

Commit cbd785f

Browse files
authored
Merge pull request #31 from johnkary/psr4
Support PSR-4 autoloading
2 parents fd82913 + 54d43ca commit cbd785f

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@
1616
"phpunit/phpunit": "^6.0"
1717
},
1818
"autoload": {
19-
"psr-0": {
20-
"JohnKary": "src/"
19+
"psr-4": {
20+
"JohnKary\\PHPUnit\\Listener\\": "src/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"JohnKary\\PHPUnit\\Listener\\Tests\\": "tests/"
2126
}
2227
},
2328
"extra": {

phpunit.xml.dist

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<testsuites>
1717
<testsuite name="Project Test Suite">
18-
<directory>src/*/*/*/Tests</directory>
18+
<directory>tests</directory>
1919
</testsuite>
2020
</testsuites>
2121

@@ -37,9 +37,6 @@
3737
<filter>
3838
<whitelist>
3939
<directory>src</directory>
40-
<exclude>
41-
<directory>src/*/*/*/Tests</directory>
42-
</exclude>
4340
</whitelist>
4441
</filter>
4542

0 commit comments

Comments
 (0)