Skip to content

Commit 7cdab45

Browse files
feat!: support phpunit 11, drop 9 and set min php to 8.2 (#22)
1 parent 69ad2d6 commit 7cdab45

File tree

5 files changed

+39
-21
lines changed

5 files changed

+39
-21
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.1, 8.2]
18-
laravel: [9, 10]
19-
phpunit: [9.5, 10]
17+
php: [8.2, 8.3]
18+
laravel: [10, 11]
19+
phpunit: [10.5, 11]
2020

2121
steps:
2222
- name: Checkout Code

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
vendor/
22
composer.lock
3-
.phpunit.result.cache
4-
.phpunit.cache
3+
.phpunit.cache/

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## Unreleased (Laravel 11)
7+
8+
### Changed
9+
10+
- **BREAKING** Package now requires `illuminate/support` 10 or 11, dropping support for 9.
11+
- **BREAKING** Package now requires PHPUnit 10 or 11, dropping support for 9.
12+
- Minimum PHP version is now `8.2`.
13+
614
## [5.0.0] - 2023-02-18
715

816
### Changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^8.1",
24+
"php": "^8.2",
2525
"ext-json": "*",
26-
"illuminate/contracts": "^9.0|^10.0",
27-
"illuminate/support": "^9.0|^10.0",
28-
"phpunit/phpunit": "^9.5.10|^10.0"
26+
"illuminate/contracts": "^10.0|^11.0",
27+
"illuminate/support": "^10.0|^11.0",
28+
"phpunit/phpunit": "^10.5|^11.0"
2929
},
3030
"autoload": {
3131
"psr-4": {
@@ -39,7 +39,7 @@
3939
},
4040
"extra": {
4141
"branch-alias": {
42-
"dev-develop": "5.x-dev"
42+
"dev-develop": "6.x-dev"
4343
}
4444
},
4545
"minimum-stability": "stable",

phpunit.xml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
3-
beStrictAboutTestsThatDoNotTestAnything="true" bootstrap="vendor/autoload.php" colors="true"
4-
processIsolation="false" stopOnError="false" stopOnFailure="false"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
6-
backupStaticProperties="false">
7-
<coverage>
8-
<include>
9-
<directory suffix="Test.php">src/</directory>
10-
</include>
11-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
4+
beStrictAboutTestsThatDoNotTestAnything="true"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
processIsolation="false"
8+
stopOnError="false"
9+
stopOnFailure="false"
10+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
11+
cacheDirectory=".phpunit.cache"
12+
backupStaticProperties="false"
13+
failOnWarning="true"
14+
failOnDeprecation="false"
15+
failOnNotice="true"
16+
>
17+
<coverage/>
1218
<testsuites>
1319
<testsuite name="Unit">
1420
<directory>./tests/</directory>
@@ -17,4 +23,9 @@
1723
<php>
1824
<ini name="error_reporting" value="E_ALL"/>
1925
</php>
20-
</phpunit>
26+
<source>
27+
<include>
28+
<directory suffix=".php">src/</directory>
29+
</include>
30+
</source>
31+
</phpunit>

0 commit comments

Comments
 (0)