Skip to content

Commit 95cabc8

Browse files
Laravel 11.x Compatibility (#22)
1 parent f6d2e76 commit 95cabc8

File tree

5 files changed

+33
-46
lines changed

5 files changed

+33
-46
lines changed

.github/workflows/run-tests.yml

Lines changed: 8 additions & 1 deletion
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ testbench.yaml
1212
vendor
1313
node_modules
1414
.php-cs-fixer.cache
15+
.phpunit.cache
16+
.phpunit.cache/test-results
17+

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2023 MAIZE SRL <info@maize.io>
3+
Copyright (c) 2024 MAIZE SRL <info@maize.io>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
],
2020
"require": {
2121
"php": "^8.0",
22-
"illuminate/contracts": "^9.0|^10.0",
23-
"illuminate/database": "^9.0|^10.0",
24-
"illuminate/support": "^9.0|^10.0",
22+
"illuminate/contracts": "^9.0|^10.0|^11.0",
23+
"illuminate/database": "^9.0|^10.0|^11.0",
24+
"illuminate/support": "^9.0|^10.0|^11.0",
2525
"spatie/laravel-package-tools": "^1.14.1"
2626
},
2727
"require-dev": {
2828
"friendsofphp/php-cs-fixer": "^3.4",
29-
"nunomaduro/collision": "^6.0",
30-
"orchestra/testbench": "^7.0|^8.0",
31-
"phpunit/phpunit": "^9.5",
32-
"vimeo/psalm": "^4.20"
29+
"nunomaduro/collision": "^6.0|^7.10.0|^8.1.1",
30+
"orchestra/testbench": "^7.0|^8.0|^9.0",
31+
"phpunit/phpunit": "^9.5|^10.5",
32+
"vimeo/psalm": "^4.20|^5.22"
3333
},
3434
"autoload": {
3535
"psr-4": {

phpunit.xml.dist

Lines changed: 14 additions & 37 deletions
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)