Skip to content

Commit 792a60a

Browse files
authored
add Laravel 11 support (#61)
1 parent 32ea3cc commit 792a60a

File tree

4 files changed

+29
-43
lines changed

4 files changed

+29
-43
lines changed

.github/workflows/run-tests.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ 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:
23+
^3.0
2024
- laravel: 10.*
2125
testbench: 8.*
2226
carbon: ^2.63
@@ -26,6 +30,10 @@ jobs:
2630
exclude:
2731
- laravel: 10.*
2832
php: 8.0
33+
- laravel: 11.*
34+
php: 8.1
35+
- laravel: 11.*
36+
php: 8.0
2937

3038
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3139

.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-5
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
],
2626
"require": {
2727
"php": "^8.0",
28-
"illuminate/database": "^9.0|^10.0",
29-
"illuminate/support": "^9.0|^10.0",
28+
"illuminate/database": "^9.0|^10.0|^11.0",
29+
"illuminate/support": "^9.0|^10.0|^11.0",
3030
"spatie/laravel-package-tools": "^1.14.1"
3131
},
3232
"require-dev": {
3333
"laravel/pint": "^1.0",
34-
"orchestra/testbench": "^7.0|^8.0",
35-
"phpunit/phpunit": "^9.5",
34+
"orchestra/testbench": "^7.0|^8.0|^9.0",
35+
"phpunit/phpunit": "^9.5|^10.5",
3636
"spatie/laravel-ray": "^1.29",
37-
"vimeo/psalm": "^4.22"
37+
"vimeo/psalm": "^4.22|^5.22"
3838
},
3939
"autoload": {
4040
"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)