File tree 4 files changed +40
-16
lines changed
4 files changed +40
-16
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 :
@@ -24,11 +24,12 @@ jobs:
24
24
- 5.4
25
25
- 5.3
26
26
steps :
27
- - uses : actions/checkout@v2
27
+ - uses : actions/checkout@v3
28
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 }}
@@ -37,13 +38,16 @@ jobs:
37
38
38
39
PHPUnit-hhvm :
39
40
name : PHPUnit (HHVM)
40
- runs-on : ubuntu-18 .04
41
+ runs-on : ubuntu-22 .04
41
42
continue-on-error : true
42
43
steps :
43
- - uses : actions/checkout@v2
44
- - uses : azjezz/setup-hhvm@v1
44
+ - uses : actions/checkout@v3
45
+ - run : cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
46
+ - name : Run hhvm composer.phar install
47
+ uses : docker://hhvm/hhvm:3.30-lts-latest
45
48
with :
46
- version : lts-3.30
47
- - run : composer self-update --2.2 # downgrade Composer for HHVM
48
- - run : hhvm $(which composer) install
49
- - run : hhvm vendor/bin/phpunit
49
+ args : hhvm composer.phar install
50
+ - name : Run hhvm vendor/bin/phpunit
51
+ uses : docker://hhvm/hhvm:3.30-lts-latest
52
+ with :
53
+ args : hhvm vendor/bin/phpunit
Original file line number Diff line number Diff line change 41
41
"clue/http-proxy-react" : " ^1.8" ,
42
42
"clue/reactphp-ssh-proxy" : " ^1.4" ,
43
43
"clue/socks-react" : " ^1.4" ,
44
- "phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8.35" ,
44
+ "phpunit/phpunit" : " ^9.5 || ^5.7 || ^4.8.35" ,
45
45
"react/async" : " ^4 || ^3 || ^2" ,
46
46
"react/promise-timer" : " ^1.9"
47
47
},
48
48
"autoload" : {
49
- "psr-4" : { "React\\ Http\\ " : " src" }
49
+ "psr-4" : {
50
+ "React\\ Http\\ " : " src/"
51
+ }
50
52
},
51
53
"autoload-dev" : {
52
- "psr-4" : { "React\\ Tests\\ Http\\ " : " tests" }
54
+ "psr-4" : {
55
+ "React\\ Tests\\ Http\\ " : " tests/"
56
+ }
53
57
}
54
58
}
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 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=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