From 537fa0a74de6f429377d18db8e9e3674b730bdce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Fri, 25 Feb 2022 10:57:36 +0100 Subject: [PATCH 1/2] PHP 8.1 test --- .github/workflows/acceptance.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 7bab97c..06c1766 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -63,6 +63,22 @@ jobs: - name: Test run: make test + test-8-1: + runs-on: ubuntu-latest + name: Test PHP 8.1 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up PHP 8.1 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + - name: Composer + run: make install + - name: Test + run: make test + + cs-check: runs-on: ubuntu-latest name: Code standard From 30173043a33c8029f7c0b7473ed0bf929c5a235c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Fri, 25 Feb 2022 11:03:19 +0100 Subject: [PATCH 2/2] Code standard --- tests/ClientTest.php | 1 - tests/ExceptionTest.php | 1 - tests/MessageTest.php | 1 - tests/ServerTest.php | 1 - tests/mock/MockSocket.php | 1 - 5 files changed, 5 deletions(-) diff --git a/tests/ClientTest.php b/tests/ClientTest.php index c7bdc16..a5c8d84 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -13,7 +13,6 @@ class ClientTest extends TestCase { - public function setUp(): void { error_reporting(-1); diff --git a/tests/ExceptionTest.php b/tests/ExceptionTest.php index 84b939c..2083e70 100644 --- a/tests/ExceptionTest.php +++ b/tests/ExceptionTest.php @@ -13,7 +13,6 @@ class ExceptionTest extends TestCase { - public function setUp(): void { error_reporting(-1); diff --git a/tests/MessageTest.php b/tests/MessageTest.php index 2d06ab7..bade435 100644 --- a/tests/MessageTest.php +++ b/tests/MessageTest.php @@ -14,7 +14,6 @@ class MessageTest extends TestCase { - public function setUp(): void { error_reporting(-1); diff --git a/tests/ServerTest.php b/tests/ServerTest.php index 8294236..c2370f4 100644 --- a/tests/ServerTest.php +++ b/tests/ServerTest.php @@ -13,7 +13,6 @@ class ServerTest extends TestCase { - public function setUp(): void { error_reporting(-1); diff --git a/tests/mock/MockSocket.php b/tests/mock/MockSocket.php index e12d6ed..e51823d 100644 --- a/tests/mock/MockSocket.php +++ b/tests/mock/MockSocket.php @@ -8,7 +8,6 @@ class MockSocket { - private static $queue = []; private static $stored = []; private static $asserter;