Skip to content

Commit c388b30

Browse files
committed
Update dependencies and supported PHP versions.
1 parent 195a78a commit c388b30

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

.github/workflows/unit.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
php-version:
19-
- "8.1"
20-
- "8.2"
2119
- "8.3"
20+
- "8.4"
2221

2322
steps:
2423
- name: "Checkout"
@@ -27,11 +26,11 @@ jobs:
2726
- name: "Install PHP with extensions"
2827
uses: "shivammathur/setup-php@v2"
2928
with:
30-
php-version: "${{ matrix.php-version }}"
31-
php_extensions: "xdebug"
29+
php-version: "${{ matrix.php-version }}"
30+
extensions: "xdebug"
3231

3332
- name: "Cache dependencies installed with Composer"
34-
uses: "actions/cache@v2"
33+
uses: "actions/cache@v4"
3534
with:
3635
path: "~/.composer/cache"
3736
key: "php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}"

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
"type": "library",
1010
"license": "MIT",
1111
"require": {
12-
"php": ">=8.1",
12+
"php": ">=8.3",
1313
"setbased/helper-code-store": "^2.4.0"
1414
},
15-
"minimum-stability": "dev",
16-
"prefer-stable": true,
1715
"require-dev": {
18-
"phing/phing": "^3.0.0-RC4",
19-
"phpunit/phpunit": "^9.5.28"
16+
"phing/phing": "^3.0.1",
17+
"phpunit/phpunit": "^11.0"
2018
},
2119
"autoload": {
2220
"psr-4": {

phpunit.xml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
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/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
4-
<include>
5-
<directory suffix=".php">src</directory>
6-
</include>
7-
<exclude>
8-
<directory suffix=".php">vendor/setbased</directory>
9-
</exclude>
10-
<report>
11-
<clover outputFile="test/coverage.xml"/>
12-
<html outputDirectory="test/report"/>
13-
</report>
14-
</coverage>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
displayDetailsOnTestsThatTriggerDeprecations="true"
5+
displayDetailsOnTestsThatTriggerErrors="true"
6+
displayDetailsOnTestsThatTriggerNotices="true"
7+
displayDetailsOnTestsThatTriggerWarnings="true"
8+
displayDetailsOnPhpunitDeprecations="true">
159
<testsuites>
16-
<testsuite name="Tests">
10+
<testsuite name="default">
1711
<directory>test</directory>
1812
</testsuite>
1913
</testsuites>
20-
<logging/>
14+
15+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
16+
<include>
17+
<directory>src</directory>
18+
</include>
19+
</source>
2120
</phpunit>

0 commit comments

Comments
 (0)