File tree Expand file tree Collapse file tree 4 files changed +42
-11
lines changed Expand file tree Collapse file tree 4 files changed +42
-11
lines changed Original file line number Diff line number Diff line change 21
21
php : ' 7.4'
22
22
- laravel : ' 10.*'
23
23
php : ' 8.0'
24
+ include :
25
+ - php : 7.4
26
+ phpunit : ^9.5
27
+ - php : ' 8.0'
28
+ phpunit : ^9.5
29
+ - php : 8.1
30
+ phpunit : ^10.5
31
+ - php : 8.2
32
+ phpunit : ^10.5
24
33
25
34
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
26
35
@@ -52,10 +61,11 @@ jobs:
52
61
- name : Install dependencies
53
62
run : |
54
63
composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update
64
+ composer require "phpunit/phpunit:${{ matrix.phpunit }}" --dev --no-interaction --no-update
55
65
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
56
66
57
67
- name : Execute tests
58
- run : XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
68
+ run : XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=${{ matrix.phpunit == '^9.5' && 'phpunit-9.xml' || 'phpunit.xml' }} -- coverage-text --coverage-clover=coverage.clover
59
69
60
70
- name : Upload Scrutinizer coverage
61
71
uses : sudo-bot/action-scrutinizer@latest
Original file line number Diff line number Diff line change 12
12
"guzzlehttp/guzzle" : " ^7.3" ,
13
13
"guzzlehttp/psr7" : " ^2.1" ,
14
14
"orchestra/testbench" : " ^6.15|^7.0|^8.0" ,
15
- "phpunit/phpunit" : " ^9.5"
15
+ "phpunit/phpunit" : " ^9.5|^10.5 "
16
16
},
17
17
"autoload" : {
18
18
"psr-4" : {
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
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/6.2/phpunit.xsd"
4
+ backupGlobals =" false"
5
+ backupStaticAttributes =" false"
6
+ colors =" true"
7
+ bootstrap =" vendor/autoload.php"
8
+ convertErrorsToExceptions =" true"
9
+ convertNoticesToExceptions =" true"
10
+ convertWarningsToExceptions =" true"
11
+ processIsolation =" false"
12
+ stopOnFailure =" false" >
13
+ <testsuites >
14
+ <testsuite name =" tests" >
15
+ <directory suffix =" Test.php" >./tests</directory >
16
+ </testsuite >
17
+ </testsuites >
18
+ <filter >
19
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
20
+ <directory suffix =" .php" >./src</directory >
21
+ </whitelist >
22
+ </filter >
23
+ </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/6.2 /phpunit.xsd"
3
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5 /phpunit.xsd"
4
4
backupGlobals =" false"
5
- backupStaticAttributes =" false"
5
+ backupStaticProperties =" false"
6
6
colors =" true"
7
7
bootstrap =" vendor/autoload.php"
8
- convertErrorsToExceptions =" true"
9
- convertNoticesToExceptions =" true"
10
- convertWarningsToExceptions =" true"
8
+ cacheDirectory =" .phpunit.cache"
11
9
processIsolation =" false"
12
10
stopOnFailure =" false" >
13
11
<testsuites >
14
12
<testsuite name =" tests" >
15
13
<directory suffix =" Test.php" >./tests</directory >
16
14
</testsuite >
17
15
</testsuites >
18
- <filter >
19
- <whitelist processUncoveredFilesFromWhitelist = " true " >
16
+ <source >
17
+ <include >
20
18
<directory suffix =" .php" >./src</directory >
21
- </whitelist >
22
- </filter >
19
+ </include >
20
+ </source >
23
21
</phpunit >
You can’t perform that action at this time.
0 commit comments