Skip to content

Commit

Permalink
feat!: support phpunit 11, drop 9 and set min php to 8.2 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris authored Mar 12, 2024
1 parent 69ad2d6 commit 7cdab45
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: [9, 10]
phpunit: [9.5, 10]
php: [8.2, 8.3]
laravel: [10, 11]
phpunit: [10.5, 11]

steps:
- name: Checkout Code
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vendor/
composer.lock
.phpunit.result.cache
.phpunit.cache
.phpunit.cache/
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. This project adheres to
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).

## Unreleased (Laravel 11)

### Changed

- **BREAKING** Package now requires `illuminate/support` 10 or 11, dropping support for 9.
- **BREAKING** Package now requires PHPUnit 10 or 11, dropping support for 9.
- Minimum PHP version is now `8.2`.

## [5.0.0] - 2023-02-18

### Changed
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-json": "*",
"illuminate/contracts": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"phpunit/phpunit": "^9.5.10|^10.0"
"illuminate/contracts": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"phpunit/phpunit": "^10.5|^11.0"
},
"autoload": {
"psr-4": {
Expand All @@ -39,7 +39,7 @@
},
"extra": {
"branch-alias": {
"dev-develop": "5.x-dev"
"dev-develop": "6.x-dev"
}
},
"minimum-stability": "stable",
Expand Down
33 changes: 22 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
beStrictAboutTestsThatDoNotTestAnything="true" bootstrap="vendor/autoload.php" colors="true"
processIsolation="false" stopOnError="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage>
<include>
<directory suffix="Test.php">src/</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
beStrictAboutTestsThatDoNotTestAnything="true"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
failOnWarning="true"
failOnDeprecation="false"
failOnNotice="true"
>
<coverage/>
<testsuites>
<testsuite name="Unit">
<directory>./tests/</directory>
Expand All @@ -17,4 +23,9 @@
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>
</phpunit>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit 7cdab45

Please sign in to comment.