File tree Expand file tree Collapse file tree 5 files changed +39
-16
lines changed Expand file tree Collapse file tree 5 files changed +39
-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 :
14
+ - 8.3
14
15
- 8.2
15
16
- 8.1
16
17
- 8.0
24
25
- 5.4
25
26
- 5.3
26
27
steps :
27
- - uses : actions/checkout@v2
28
+ - uses : actions/checkout@v4
28
29
- uses : shivammathur/setup-php@v2
29
30
with :
30
31
php-version : ${{ matrix.php }}
@@ -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@v4
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/phpunit/phpunit/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 11
11
}
12
12
],
13
13
"autoload" : {
14
- "psr-4" : { "ConnectionManager\\ Extra\\ " : " src" }
14
+ "psr-4" : {
15
+ "ConnectionManager\\ Extra\\ " : " src"
16
+ }
15
17
},
16
18
"autoload-dev" : {
17
- "psr-4" : { "ConnectionManager\\ Tests\\ Extra\\ " : " tests/" }
19
+ "psr-4" : {
20
+ "ConnectionManager\\ Tests\\ Extra\\ " : " tests/"
21
+ }
18
22
},
19
23
"require" : {
20
24
"php" : " >=5.3" ,
24
28
"react/socket" : " ^1.12"
25
29
},
26
30
"require-dev" : {
27
- "phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8"
31
+ "phpunit/phpunit" : " ^9.6 || ^5.7 || ^4.8.36 "
28
32
}
29
33
}
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.6 + -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.6 /phpunit.xsd"
6
6
bootstrap =" vendor/autoload.php"
7
7
cacheResult =" false"
8
8
colors =" true"
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
+ </php >
18
21
</phpunit >
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ public function testEmptyListsThrows()
16
16
17
17
public function testWillForwardToInnerConnector ()
18
18
{
19
+ if (defined ('HHVM_VERSION ' )) {
20
+ $ this ->markTestSkipped ('Not supported on HHVM ' );
21
+ }
22
+
19
23
$ pending = new Promise \Promise (function () { });
20
24
21
25
$ only = $ this ->getMockBuilder ('React\Socket\ConnectorInterface ' )->getMock ();
@@ -30,6 +34,10 @@ public function testWillForwardToInnerConnector()
30
34
31
35
public function testWillCancelOtherIfOneResolves ()
32
36
{
37
+ if (defined ('HHVM_VERSION ' )) {
38
+ $ this ->markTestSkipped ('Not supported on HHVM ' );
39
+ }
40
+
33
41
$ resolved = Promise \resolve ($ this ->getMockBuilder ('React\Stream\DuplexStreamInterface ' )->getMock ());
34
42
$ first = $ this ->getMockBuilder ('React\Socket\ConnectorInterface ' )->getMock ();
35
43
$ first ->expects ($ this ->once ())->method ('connect ' )->with ('google.com:80 ' )->willReturn ($ resolved );
@@ -47,6 +55,10 @@ public function testWillCancelOtherIfOneResolves()
47
55
48
56
public function testWillCloseOtherIfOneResolves ()
49
57
{
58
+ if (defined ('HHVM_VERSION ' )) {
59
+ $ this ->markTestSkipped ('Not supported on HHVM ' );
60
+ }
61
+
50
62
$ resolved = Promise \resolve ($ this ->getMockBuilder ('React\Stream\DuplexStreamInterface ' )->getMock ());
51
63
$ first = $ this ->getMockBuilder ('React\Socket\ConnectorInterface ' )->getMock ();
52
64
$ first ->expects ($ this ->once ())->method ('connect ' )->with ('google.com:80 ' )->willReturn ($ resolved );
You can’t perform that action at this time.
0 commit comments