File tree Expand file tree Collapse file tree 4 files changed +39
-17
lines changed Expand file tree Collapse file tree 4 files changed +39
-17
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
PHPUnit :
9
- runs-on : ubuntu-20.04
9
+ name : PHPUnit (PHP ${{ matrix.php }})
10
+ runs-on : ubuntu-22.04
10
11
strategy :
11
12
matrix :
12
13
php :
@@ -23,12 +24,12 @@ jobs:
23
24
- 5.4
24
25
- 5.3
25
26
steps :
26
- - uses : actions/checkout@v2
27
- - name : Setup PHP
28
- uses : shivammathur/setup-php@v2
27
+ - uses : actions/checkout@v3
28
+ - uses : shivammathur/setup-php@v2
29
29
with :
30
30
php-version : ${{ matrix.php }}
31
31
coverage : xdebug
32
+ ini-file : development
32
33
- run : composer install
33
34
- run : vendor/bin/phpunit --coverage-text
34
35
if : ${{ matrix.php >= 7.3 }}
Original file line number Diff line number Diff line change 10
10
11
11
}
12
12
],
13
- "autoload" : {
14
- "psr-4" : { "Clue\\ React\\ Docker\\ " : " src/" }
15
- },
16
- "autoload-dev" : {
17
- "psr-4" : { "Clue\\ Tests\\ React\\ Docker\\ " : " tests/" }
18
- },
19
13
"require" : {
20
14
"php" : " >=5.3" ,
21
15
"clue/json-stream" : " ^0.1" ,
28
22
"rize/uri-template" : " ^0.3"
29
23
},
30
24
"require-dev" : {
31
- "react/async" : " ^4 || ^3 || ^2" ,
32
25
"clue/caret-notation" : " ^0.2" ,
33
26
"clue/tar-react" : " ^0.2" ,
34
- "phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8.35"
27
+ "phpunit/phpunit" : " ^9.5 || ^5.7 || ^4.8.35" ,
28
+ "react/async" : " ^4 || ^3 || ^2"
29
+ },
30
+ "autoload" : {
31
+ "psr-4" : {
32
+ "Clue\\ React\\ Docker\\ " : " src/"
33
+ }
34
+ },
35
+ "autoload-dev" : {
36
+ "psr-4" : {
37
+ "Clue\\ Tests\\ React\\ Docker\\ " : " tests/"
38
+ }
35
39
}
36
40
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <!-- PHPUnit configuration file with new format for PHPUnit 9.3 + -->
4
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3 /phpunit.xsd"
3
+ <!-- PHPUnit configuration file with new format for PHPUnit 9.5 + -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.5 /phpunit.xsd"
6
6
bootstrap =" vendor/autoload.php"
7
+ cacheResult =" false"
7
8
colors =" true"
8
- cacheResult = " false " >
9
+ convertDeprecationsToExceptions = " true " >
9
10
<testsuites >
10
11
<testsuite name =" Docker React Test Suite" >
11
12
<directory >./tests/</directory >
16
17
<directory >./src/</directory >
17
18
</include >
18
19
</coverage >
20
+ <php >
21
+ <ini name =" error_reporting" value =" -1" />
22
+ <!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
23
+ <!-- <ini name="zend.assertions" value="1" /> -->
24
+ <ini name =" assert.active" value =" 1" />
25
+ <ini name =" assert.exception" value =" 1" />
26
+ <ini name =" assert.bail" value =" 0" />
27
+ </php >
19
28
</phpunit >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <!-- PHPUnit configuration file with old format for PHPUnit 9.2 or older -->
3
+ <!-- PHPUnit configuration file with old format for legacy PHPUnit -->
4
4
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
5
xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/4.8/phpunit.xsd"
6
6
bootstrap =" vendor/autoload.php"
15
15
<directory >./src/</directory >
16
16
</whitelist >
17
17
</filter >
18
+ <php >
19
+ <ini name =" error_reporting" value =" -1" />
20
+ <!-- Evaluate assertions, requires running with "php -d zend.assertions=1 vendor/bin/phpunit" -->
21
+ <!-- <ini name="zend.assertions" value="1" /> -->
22
+ <ini name =" assert.active" value =" 1" />
23
+ <ini name =" assert.exception" value =" 1" />
24
+ <ini name =" assert.bail" value =" 0" />
25
+ </php >
18
26
</phpunit >
You can’t perform that action at this time.
0 commit comments