Skip to content

Commit 67379a9

Browse files
Laravel 11.x Compatibility (#30)
1 parent 5d6d567 commit 67379a9

File tree

4 files changed

+28
-44
lines changed

4 files changed

+28
-44
lines changed

.github/workflows/run-tests.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
1616
php: [8.3, 8.2, 8.1, 8.0]
17-
laravel: [10.*, 9.*]
17+
laravel: [11.*, 10.*, 9.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20+
- laravel: 11.*
21+
testbench: 9.*
22+
carbon: ^3.0
2023
- laravel: 10.*
2124
testbench: 8.*
2225
carbon: ^2.63
@@ -26,6 +29,10 @@ jobs:
2629
exclude:
2730
- laravel: 10.*
2831
php: 8.0
32+
- laravel: 11.*
33+
php: 8.1
34+
- laravel: 11.*
35+
php: 8.0
2936

3037
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3138

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ testbench.yaml
1212
vendor
1313
node_modules
1414
.php-cs-fixer.cache
15+
.phpunit.cache/test-results

composer.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@
1717
],
1818
"require": {
1919
"php": "^8.0",
20-
"illuminate/database": "^9.0|^10.0",
21-
"illuminate/support": "^9.0|^10.0",
20+
"illuminate/database": "^9.0|^10.0|^11.0",
21+
"illuminate/support": "^9.0|^10.0|^11.0",
2222
"spatie/laravel-package-tools": "^1.14.1"
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.0",
26-
"nunomaduro/collision": "^6.0",
27-
"orchestra/testbench": "^7.0|^8.0",
28-
"phpunit/phpunit": "^9.5",
29-
"vimeo/psalm": "^4.20"
26+
"orchestra/testbench": "^7.0|^8.0|^9.0",
27+
"phpunit/phpunit": "^9.5|^10.5",
28+
"vimeo/psalm": "^4.20|^5.22"
3029
},
3130
"autoload": {
3231
"psr-4": {

phpunit.xml.dist

+14-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
21-
<testsuites>
22-
<testsuite name="Maize Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Maize Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<logging>
9+
<junit outputFile="build/report.junit.xml"/>
10+
</logging>
11+
<source>
12+
<include>
13+
<directory suffix=".php">./src</directory>
14+
</include>
15+
</source>
3916
</phpunit>

0 commit comments

Comments
 (0)