Skip to content

Commit 3572c88

Browse files
committed
Allow installation with laravel 11
1 parent 11047fa commit 3572c88

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
php: [8.0,8.1,8.2]
17-
laravel: [9.*,10.*]
17+
laravel: [ 9.*,10.*,11.* ]
1818
stability: [prefer-stable]
1919
include:
2020
- laravel: 9.*
2121
testbench: 7.*
2222
- laravel: 10.*
2323
testbench: 8.*
24+
- laravel: 11.*
25+
testbench: 8.*
2426
exclude:
2527
- php: 8.0
2628
laravel: 10.*
29+
- php: 8.0
30+
laravel: 11.*
2731

2832
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2933

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
"require": {
2020
"php": "^8.0",
2121
"doctrine/dbal": "^3.3",
22-
"illuminate/contracts": "^9.0|^10.0",
22+
"illuminate/contracts": "^9.0|^10.0|^11.0",
2323
"spatie/laravel-package-tools": "^1.9.2"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.8",
27-
"nunomaduro/collision": "^6.0",
27+
"nunomaduro/collision": "^6.0|^7.0",
2828
"nunomaduro/larastan": "^2.0.1",
2929
"orchestra/testbench": "^7.0|^8.0",
30-
"pestphp/pest": "^1.21",
30+
"pestphp/pest": "^1|^2",
3131
"pestphp/pest-plugin-laravel": "^1.1|^2.0",
3232
"phpstan/extension-installer": "^1.1",
3333
"phpstan/phpstan-deprecation-rules": "^1.0",
3434
"phpstan/phpstan-phpunit": "^1.0",
35-
"phpunit/phpunit": "^9.5",
35+
"phpunit/phpunit": "^9.0|^10.0",
3636
"roave/security-advisories": "dev-latest",
37-
"spatie/pest-plugin-test-time": "^1.1",
37+
"spatie/pest-plugin-test-time": "^1.0|^2.0",
3838
"spatie/ray": "^1.37"
3939
},
4040
"autoload": {

phpunit.xml.dist

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
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-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false"
4+
bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false"
5+
executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true"
6+
beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
217
<testsuites>
228
<testsuite name="Oddvalue Test Suite">
239
<directory>tests</directory>
2410
</testsuite>
2511
</testsuites>
2612
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
3013
<report>
3114
<html outputDirectory="build/coverage"/>
3215
<text outputFile="build/coverage.txt"/>
@@ -36,4 +19,9 @@
3619
<logging>
3720
<junit outputFile="build/report.junit.xml"/>
3821
</logging>
22+
<source>
23+
<include>
24+
<directory suffix=".php">./src</directory>
25+
</include>
26+
</source>
3927
</phpunit>

0 commit comments

Comments
 (0)