diff --git a/.gitattributes b/.gitattributes
index a353f44..404fd5d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -3,4 +3,5 @@
/.gitignore export-ignore
/examples/ export-ignore
/phpunit.xml.dist export-ignore
+/phpunit.xml.legacy export-ignore
/tests/ export-ignore
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 226e238..cf214c8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
php:
+ - 8.0
- 7.4
- 7.3
- 7.2
@@ -28,6 +29,9 @@ jobs:
coverage: xdebug
- run: composer install
- run: vendor/bin/phpunit --coverage-text
+ if: ${{ matrix.php >= 7.3 }}
+ - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
+ if: ${{ matrix.php < 7.3 }}
PHPUnit-hhvm:
name: PHPUnit (HHVM)
diff --git a/README.md b/README.md
index 15b74a1..6fa7863 100644
--- a/README.md
+++ b/README.md
@@ -145,7 +145,7 @@ $ composer require clue/mdns-react:~0.2.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 and supports running on legacy PHP 5.3 through current PHP 7+ and
+extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
HHVM.
It's *highly recommended to use PHP 7+* for this project.
diff --git a/composer.json b/composer.json
index 8910377..e73e057 100644
--- a/composer.json
+++ b/composer.json
@@ -24,6 +24,6 @@
"react/promise": "^2.1 || ^1.2.1"
},
"require-dev": {
- "phpunit/phpunit": "^9.0 || ^6.0 || ^5.7 || ^4.8.35"
+ "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36"
}
}
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 04046f1..c9d42a6 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -1,14 +1,19 @@
-
+
+
./tests/
-
-
+
+
./src/
-
-
-
\ No newline at end of file
+
+
+
diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy
new file mode 100644
index 0000000..0b4f05b
--- /dev/null
+++ b/phpunit.xml.legacy
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+ ./tests/
+
+
+
+
+ ./src/
+
+
+