diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b460653..42fec7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ jobs: - ubuntu-20.04 - windows-2019 php: + - 8.0 - 7.4 - 7.3 - 7.2 diff --git a/README.md b/README.md index 3947014..6c92414 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ $ composer require clue/zlib-react:^1.0 See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. This project aims to run on any platform and thus does not require any PHP -extensions besides `ext-zlib` and supports running on current PHP 7+. +extensions besides `ext-zlib` and supports running on PHP 7 through current PHP 8+. The `ext-zlib` extension is required for handling the underlying data compression and decompression. diff --git a/tests/CompressorTest.php b/tests/CompressorTest.php index e33fefd..926c3c4 100644 --- a/tests/CompressorTest.php +++ b/tests/CompressorTest.php @@ -8,7 +8,7 @@ class CompressorTest extends TestCase { public function testCtorThrowsForInvalidEncoding() { - $this->expectException('InvalidArgumentException'); + $this->expectException(PHP_VERSION_ID >= 80000 ? \ValueError::class : \InvalidArgumentException::class); new Compressor(0); } } diff --git a/tests/DecompressorTest.php b/tests/DecompressorTest.php index dd3a2ab..e438692 100644 --- a/tests/DecompressorTest.php +++ b/tests/DecompressorTest.php @@ -8,7 +8,7 @@ class DecompressorTest extends TestCase { public function testCtorThrowsForInvalidEncoding() { - $this->expectException('InvalidArgumentException'); + $this->expectException(PHP_VERSION_ID >= 80000 ? \ValueError::class : \InvalidArgumentException::class); new Decompressor(0); } }