From 1b1b45b7f0ec1f3f9e01f12b25a7489f19013ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Tue, 10 Nov 2026 14:59:05 +0100 Subject: [PATCH] Run tests on PHP 8.6 and update test environment --- .github/workflows/ci.yml | 7 ++++--- composer.json | 2 +- tests/DuplexResourceStreamIntegrationTest.php | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbf9eb7..4215361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,11 @@ on: jobs: PHPUnit: name: PHPUnit (PHP ${{ matrix.php }}) - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 strategy: matrix: php: + - 8.6 - 8.5 - 8.4 - 8.3 @@ -48,7 +49,7 @@ jobs: - uses: actions/checkout@v7 - uses: shivammathur/setup-php@v2 with: - php-version: 8.5 + php-version: 8.6 coverage: xdebug ini-file: development - run: composer install @@ -57,7 +58,7 @@ jobs: PHPUnit-hhvm: name: PHPUnit (HHVM) - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 continue-on-error: true steps: - uses: actions/checkout@v7 diff --git a/composer.json b/composer.json index 7bdffaf..3561155 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ ], "require": { "php": ">=5.3.8", - "react/event-loop": "^1.2", + "react/event-loop": "^1.6", "evenement/evenement": "^3.0 || ^2.0 || ^1.0" }, "require-dev": { diff --git a/tests/DuplexResourceStreamIntegrationTest.php b/tests/DuplexResourceStreamIntegrationTest.php index 7135e15..e2d66ae 100644 --- a/tests/DuplexResourceStreamIntegrationTest.php +++ b/tests/DuplexResourceStreamIntegrationTest.php @@ -309,7 +309,7 @@ public function testReadsLongChunksFromProcessPipe($condition, $loopFactory) $loop = $loopFactory(); - $stream = new ReadableResourceStream(popen('dd if=/dev/zero bs=12345 count=1234 2>&-', 'r'), $loop); + $stream = new ReadableResourceStream(popen('dd if=/dev/zero bs=12345 count=1234 2>/dev/null', 'r'), $loop); $bytes = 0; $stream->on('data', function ($chunk) use (&$bytes) {