Skip to content

Commit 59570c5

Browse files
committed
Update psr-4 autoloading
1 parent 1d97b71 commit 59570c5

21 files changed

+18
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
build
12
/vendor
23
composer.lock
34
composer.phar

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"psr-4": { "Omnipay\\Common\\" : "src/Common" },
3838
"classmap": ["src/Omnipay.php"]
3939
},
40+
"autoload-dev": {
41+
"psr-4": { "Omnipay\\Common\\" : "tests/Common" },
42+
"classmap": ["tests/OmnipayTest.php"]
43+
},
4044
"require": {
4145
"php": "^5.6|^7|^8",
4246
"php-http/client-implementation": "^1",

phpunit.xml.dist

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
34
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
55
colors="true"
6+
verbose="true"
67
convertErrorsToExceptions="true"
78
convertNoticesToExceptions="true"
89
convertWarningsToExceptions="true"
910
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false">
11+
stopOnFailure="false">
1212
<testsuites>
1313
<testsuite name="Omnipay Test Suite">
14-
<directory>./tests/</directory>
14+
<directory>tests</directory>
1515
</testsuite>
1616
</testsuites>
1717
<filter>
1818
<whitelist>
19-
<directory>./src</directory>
19+
<directory suffix=".php">src/</directory>
2020
</whitelist>
2121
</filter>
22-
</phpunit>
22+
<logging>
23+
<log type="junit" target="build/report.junit.xml"/>
24+
<log type="coverage-html" target="build/coverage"/>
25+
<log type="coverage-text" target="build/coverage.txt"/>
26+
<log type="coverage-clover" target="build/logs/clover.xml"/>
27+
</logging>
28+
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)