Skip to content

Commit

Permalink
Upgrade to PHP 8.2 and higher.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Feb 4, 2024
1 parent 56aae5b commit b6c7323
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 27 deletions.
1 change: 0 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"

Expand Down
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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/
/test/report/
/vendor/
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
40 changes: 22 additions & 18 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<phpunit bootstrap="test/bootstrap.php">
<testsuites>
<testsuite name="Tests">
<directory>test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
<exclude>
<directory suffix=".php">vendor/setbased</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="test/report"/>
<log type="coverage-clover" target="test/coverage.xml"/>
</logging>
<?xml version="1.0"?>
<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">
<coverage>
<report>
<clover outputFile="test/coverage.xml"/>
<html outputDirectory="test/report"/>
</report>
</coverage>
<testsuites>
<testsuite name="Tests">
<directory>test</directory>
</testsuite>
</testsuites>
<logging/>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">vendor/setbased</directory>
</exclude>
</source>
</phpunit>
1 change: 1 addition & 0 deletions test/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
declare(strict_types=1);

error_reporting(E_ALL);
date_default_timezone_set( 'Europe/Amsterdam' );

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

0 comments on commit b6c7323

Please sign in to comment.