From b6c732365bf9d71d859bf14b556961e3e813dd42 Mon Sep 17 00:00:00 2001
From: Paul Water
Date: Sun, 4 Feb 2024 15:21:13 +0100
Subject: [PATCH] Upgrade to PHP 8.2 and higher.
---
.github/workflows/unit.yml | 1 -
.gitignore | 8 +++-----
composer.json | 6 +++---
phpunit.xml | 40 +++++++++++++++++++++-----------------
test/bootstrap.php | 1 +
5 files changed, 29 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml
index 629b9c3..c506f62 100644
--- a/.github/workflows/unit.yml
+++ b/.github/workflows/unit.yml
@@ -16,7 +16,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- - "8.1"
- "8.2"
- "8.3"
diff --git a/.gitignore b/.gitignore
index 97a72bf..10f8740 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,8 @@
/.idea/
-/.phpunit.result.cache
+/.phpunit.cache/
/bin/
/composer.lock
-/custom.task.properties
-/custom.type.properties
/doc/
/test/coverage.xml
-/test/report
-/vendor/
\ No newline at end of file
+/test/report/
+/vendor/
diff --git a/composer.json b/composer.json
index fb314c0..7797113 100644
--- a/composer.json
+++ b/composer.json
@@ -7,13 +7,13 @@
],
"license": "MIT",
"require": {
- "php": ">=8.1"
+ "php": ">=8.2"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
- "phing/phing": "^3.0.0-RC4",
- "phpunit/phpunit": "^9.5.0"
+ "phing/phing": "^3.0.0-RC6",
+ "phpunit/phpunit": "^10.5.10"
},
"autoload": {
"psr-4": {
diff --git a/phpunit.xml b/phpunit.xml
index 2b538e9..600e983 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,19 +1,23 @@
-
-
-
- test
-
-
-
-
- src
-
- vendor/setbased
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ test
+
+
+
+
diff --git a/test/bootstrap.php b/test/bootstrap.php
index 4ff156b..b8ba298 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -1,6 +1,7 @@