File tree Expand file tree Collapse file tree 3 files changed +46
-11
lines changed Expand file tree Collapse file tree 3 files changed +46
-11
lines changed Original file line number Diff line number Diff line change 50
50
if : ${{ matrix.dependencies == 'highest' }}
51
51
run : " composer update --no-interaction --no-progress"
52
52
53
- - name : " Tests"
53
+ - name : " Tests (PHPUnit 9)"
54
+ if : ${{ matrix.php-version <= '8.0' }}
55
+ run : " vendor/bin/phpunit --configuration phpunit9.xml.dist"
56
+
57
+ - name : " Tests (PHPUnit 10+)"
58
+ if : ${{ matrix.php-version >= '8.1' }}
54
59
run : " vendor/bin/phpunit"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
3
4
bootstrap =" vendor/autoload.php"
4
5
backupGlobals =" false"
5
- backupStaticAttributes =" false"
6
+ backupStaticProperties =" false"
6
7
colors =" true"
7
- verbose =" true"
8
- convertErrorsToExceptions =" true"
9
- convertNoticesToExceptions =" true"
10
- convertWarningsToExceptions =" true"
11
8
processIsolation =" false"
12
- stopOnFailure =" false"
13
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
9
+ stopOnFailure =" false" >
14
10
<coverage >
15
- <include >
16
- <directory suffix =" .php" >src/</directory >
17
- </include >
18
11
<report >
19
12
<clover outputFile =" build/logs/clover.xml" />
20
13
<html outputDirectory =" build/coverage" />
21
14
<text outputFile =" build/coverage.txt" />
22
15
</report >
23
16
</coverage >
17
+ <source restrictDeprecations =" true" restrictNotices =" true" restrictWarnings =" true" >
18
+ <include >
19
+ <directory suffix =" .php" >src/</directory >
20
+ </include >
21
+ </source >
24
22
<testsuites >
25
23
<testsuite name =" Omnipay Test Suite" >
26
24
<directory >tests</directory >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ bootstrap =" vendor/autoload.php"
4
+ backupGlobals =" false"
5
+ backupStaticAttributes =" false"
6
+ colors =" true"
7
+ verbose =" true"
8
+ convertErrorsToExceptions =" true"
9
+ convertNoticesToExceptions =" true"
10
+ convertWarningsToExceptions =" true"
11
+ processIsolation =" false"
12
+ stopOnFailure =" false"
13
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
14
+ <coverage >
15
+ <include >
16
+ <directory suffix =" .php" >src/</directory >
17
+ </include >
18
+ <report >
19
+ <clover outputFile =" build/logs/clover.xml" />
20
+ <html outputDirectory =" build/coverage" />
21
+ <text outputFile =" build/coverage.txt" />
22
+ </report >
23
+ </coverage >
24
+ <testsuites >
25
+ <testsuite name =" Omnipay Test Suite" >
26
+ <directory >tests</directory >
27
+ </testsuite >
28
+ </testsuites >
29
+ <logging >
30
+ <junit outputFile =" build/report.junit.xml" />
31
+ </logging >
32
+ </phpunit >
You can’t perform that action at this time.
0 commit comments