Skip to content

Commit 86ce8a0

Browse files
committed
Test test suite
1 parent 5861005 commit 86ce8a0

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

.github/workflows/ci.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77
jobs:
88
PHPUnit:
99
name: PHPUnit (PHP ${{ matrix.php }})
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.3
1415
- 8.2
1516
- 8.1
1617
- 8.0
@@ -24,7 +25,7 @@ jobs:
2425
- 5.4
2526
- 5.3
2627
steps:
27-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2829
- uses: shivammathur/setup-php@v2
2930
with:
3031
php-version: ${{ matrix.php }}
@@ -39,13 +40,16 @@ jobs:
3940

4041
PHPUnit-hhvm:
4142
name: PHPUnit (HHVM)
42-
runs-on: ubuntu-18.04
43+
runs-on: ubuntu-22.04
4344
continue-on-error: true
4445
steps:
45-
- uses: actions/checkout@v2
46-
- uses: azjezz/setup-hhvm@v1
46+
- uses: actions/checkout@v4
47+
- run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM
48+
- name: Run hhvm composer.phar install
49+
uses: docker://hhvm/hhvm:3.30-lts-latest
4750
with:
48-
version: lts-3.30
49-
- run: composer self-update --2.2 # downgrade Composer for HHVM
50-
- run: hhvm $(which composer) install
51-
- run: hhvm vendor/bin/phpunit
51+
args: hhvm composer.phar install
52+
- name: Run hhvm vendor/bin/phpunit
53+
uses: docker://hhvm/hhvm:3.30-lts-latest
54+
with:
55+
args: hhvm vendor/bin/phpunit

phpunit.xml.dist

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

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"
66
bootstrap="vendor/autoload.php"
77
cacheResult="false"
88
colors="true"
@@ -17,4 +17,7 @@
1717
<directory>./src/</directory>
1818
</include>
1919
</coverage>
20+
<php>
21+
<ini name="error_reporting" value="-1" />
22+
</php>
2023
</phpunit>

tests/FunctionalSshSocksConnectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function setUpConnector()
2929
public function tearDownSSHClientProcess()
3030
{
3131
// run loop in order to shut down SSH client process again
32-
\React\Async\await(\React\Promise\Timer\sleep(0.001));
32+
\React\Async\await(\React\Async\delay(0.001));
3333
}
3434

3535
public function testConnectInvalidProxyUriWillReturnRejectedPromise()

0 commit comments

Comments
 (0)