Skip to content

Commit 105f6c8

Browse files
committed
Use PSR-4 and autoload-dev to fix test structure
1 parent 31d0597 commit 105f6c8

File tree

9 files changed

+15
-19
lines changed

9 files changed

+15
-19
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@
2626
"phpunit/phpunit": "^4.6.6"
2727
},
2828
"autoload": {
29-
"psr-0" : {
29+
"psr-4" : {
3030
"Sentry\\SentryBundle\\": "src/Sentry/SentryBundle"
3131
}
3232
},
33+
"autoload-dev": {
34+
"psr-4" : {
35+
"Sentry\\SentryBundle\\Test\\": "test"
36+
}
37+
},
3338
"extra": {
3439
"branch-alias": {
3540
"dev-master": "0.8.x-dev"

phpunit.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="test/bootstrap.php">
3-
<php>
4-
</php>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
5+
colors="true"
6+
backupGlobals="false"
7+
bootstrap="vendor/autoload.php">
8+
59
<testsuites>
610
<testsuite name="SentryBundle test suite">
7-
<directory suffix="Test.php">./test</directory>
11+
<directory>./test</directory>
812
</testsuite>
913
</testsuites>
14+
1015
</phpunit>

test/bootstrap.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)