8000 feat!: upgrade to Laravel 11 and drop support for PHP 8.1 (#5) · laravel-shift/testing@de53e28 · GitHub
[go: up one dir, main page]

Skip to content

Commit de53e28

Browse files
feat!: upgrade to Laravel 11 and drop support for PHP 8.1 (laravel-json-api#5)
1 parent e719fea commit de53e28

File tree

4 files changed

+39
-25
lines changed

4 files changed

+39
-25
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.1, 8.2]
18-
testing: [4.1, 5]
17+
php: [8.2, 8.3]
1918

2019
steps:
2120
- name: Checkout Code
@@ -30,9 +29,6 @@ jobs:
3029
coverage: none
3130
ini-values: error_reporting=E_ALL
3231

33-
- name: Set Testing Version
34-
run: composer require "cloudcreativity/json-api-testing:^${{ matrix.testing }}" --no-update
35-
3632
- name: Install dependencies
3733
uses: nick-fields/retry@v2
3834
with:

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 Laravel 11.
11+
- **BREAKING** Package now requires `cloudcreativity/json-api-testing` version 6.
12+
- Minimum PHP version is now `8.2`.
13+
614
## [2.1.0] - 2023-02-18
715

816
### Added

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^8.1",
26+
"php": "^8.2",
2727
"ext-json": "*",
28-
"cloudcreativity/json-api-testing": "^4.1|^5.0",
29-
"illuminate/http": "^10.0",
30-
"illuminate/support": "^10.0",
31-
"illuminate/testing": "^10.0"
28+
"cloudcreativity/json-api-testing": "^6.0",
29+
"illuminate/http": "^11.0",
30+
"illuminate/support": "^11.0",
31+
"illuminate/testing": "^11.0"
3232
},
3333
"require-dev": {
34-
"laravel/framework": "^10.0",
35-
"phpunit/phpunit": "^9.5.28|^10.0.7"
34+
"laravel/framework": "^11.0",
35+
"phpunit/phpunit": "^10.5"
3636
},
3737
"autoload": {
3838
"psr-4": {
@@ -46,7 +46,7 @@
4646
},
4747
"extra": {
4848
"branch-alias": {
49-
"dev-develop": "2.x-dev"
49+
"dev-develop": "3.x-dev"
5050
}
5151
},
5252
"minimum-stability": "stable",

phpunit.xml

Lines changed: 22 additions & 12 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="false" 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=".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="true"
15+
failOnNotice="true"
16+
>
17+
<coverage/>
1218
<testsuites>
< 6D40 /td>
1319
<testsuite name="Unit">
1420
<directory suffix="Test.php">./tests/Unit/</directory>
@@ -19,6 +25,10 @@
1925
</testsuites>
2026
<php>
2127
<ini name="error_reporting" value="E_ALL"/>
22-
<env name="DB_CONNECTION" value="testing"/>
2328
</php>
24-
</phpunit>
29+
<source>
30+
<include>
31+
<directory suffix=".php">src/</directory>
32+
</include>
33+
</source>
34+
</phpunit>

0 commit comments

Comments
 (0)
0