File tree Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
PHPUnit :
9
9
name : PHPUnit (PHP ${{ matrix.php }})
10
- runs-on : ubuntu-20 .04
10
+ runs-on : ubuntu-22 .04
11
11
strategy :
12
12
matrix :
13
13
php :
@@ -19,11 +19,12 @@ jobs:
19
19
- 7.2
20
20
- 7.1
21
21
steps :
22
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v3
23
23
- uses : shivammathur/setup-php@v2
24
24
with :
25
25
php-version : ${{ matrix.php }}
26
26
coverage : xdebug
27
+ ini-file : development
27
28
- run : composer install
28
29
- run : docker run --net=host -d redis
29
30
- run : REDIS_URI=localhost:6379 vendor/bin/phpunit --coverage-text
Original file line number Diff line number Diff line change 21
21
},
22
22
"require-dev" : {
23
23
"clue/block-react" : " ^1.5" ,
24
- "phpunit/phpunit" : " ^9.3 || ^7.5"
24
+ "phpunit/phpunit" : " ^9.5 || ^7.5"
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : { "Clue\\ React\\ Redis\\ " : " src/" }
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
7
cacheResult =" false"
8
8
colors =" true"
17
17
<directory >./src/</directory >
18
18
</include >
19
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=1" 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 >
20
28
</phpunit >
Original file line number Diff line number Diff line change 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=1" 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