Skip to content

Commit b6c7323

Browse files
committed
Upgrade to PHP 8.2 and higher.
1 parent 56aae5b commit b6c7323

File tree

5 files changed

+29
-27
lines changed

5 files changed

+29
-27
lines changed

.github/workflows/unit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php-version:
19-
- "8.1"
2019
- "8.2"
2120
- "8.3"
2221

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/.idea/
2-
/.phpunit.result.cache
2+
/.phpunit.cache/
33
/bin/
44
/composer.lock
5-
/custom.task.properties
6-
/custom.type.properties
75
/doc/
86
/test/coverage.xml
9-
/test/report
10-
/vendor/
7+
/test/report/
8+
/vendor/

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
],
88
"license": "MIT",
99
"require": {
10-
"php": ">=8.1"
10+
"php": ">=8.2"
1111
},
1212
"minimum-stability": "dev",
1313
"prefer-stable": true,
1414
"require-dev": {
15-
"phing/phing": "^3.0.0-RC4",
16-
"phpunit/phpunit": "^9.5.0"
15+
"phing/phing": "^3.0.0-RC6",
16+
"phpunit/phpunit": "^10.5.10"
1717
},
1818
"autoload": {
1919
"psr-4": {

phpunit.xml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
<phpunit bootstrap="test/bootstrap.php">
2-
<testsuites>
3-
<testsuite name="Tests">
4-
<directory>test</directory>
5-
</testsuite>
6-
</testsuites>
7-
<filter>
8-
<whitelist processUncoveredFilesFromWhitelist="true">
9-
<directory suffix=".php">src</directory>
10-
<exclude>
11-
<directory suffix=".php">vendor/setbased</directory>
12-
</exclude>
13-
</whitelist>
14-
</filter>
15-
<logging>
16-
<log type="coverage-html" target="test/report"/>
17-
<log type="coverage-clover" target="test/coverage.xml"/>
18-
</logging>
1+
<?xml version="1.0"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="test/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage>
4+
<report>
5+
<clover outputFile="test/coverage.xml"/>
6+
<html outputDirectory="test/report"/>
7+
</report>
8+
</coverage>
9+
<testsuites>
10+
<testsuite name="Tests">
11+
<directory>test</directory>
12+
</testsuite>
13+
</testsuites>
14+
<logging/>
15+
<source>
16+
<include>
17+
<directory suffix=".php">src</directory>
18+
</include>
19+
<exclude>
20+
<directory suffix=".php">vendor/setbased</directory>
21+
</exclude>
22+
</source>
1923
</phpunit>

test/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4+
error_reporting(E_ALL);
45
date_default_timezone_set( 'Europe/Amsterdam' );
56

67
require_once( __DIR__.'/../vendor/autoload.php' );

0 commit comments

Comments
 (0)