Skip to content

Commit 583f00b

Browse files
authored
Allow installation with laravel 11 (#43)
* Allow installation with laravel 11 * Update testbench * Remove collision
1 parent a07e7ab commit 583f00b

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

.github/workflows/run-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,23 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.0,8.1,8.2]
17-
laravel: [9.*,10.*]
16+
php: [ 8.0,8.1,8.2,8.3 ]
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: 9.*
2426
exclude:
2527
- php: 8.0
2628
laravel: 10.*
29+
- php: 8.0
30+
laravel: 11.*
31+
- php: 8.1
32+
laravel: 11.*
2733

2834
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2935

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,21 @@
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",
2827
"nunomaduro/larastan": "^2.0.1",
29-
"orchestra/testbench": "^7.0|^8.0",
30-
"pestphp/pest": "^1.21",
28+
"orchestra/testbench": "^7.0|^8.0|^9.0",
29+
"pestphp/pest": "^1|^2",
3130
"pestphp/pest-plugin-laravel": "^1.1|^2.0",
3231
"phpstan/extension-installer": "^1.1",
3332
"phpstan/phpstan-deprecation-rules": "^1.0",
3433
"phpstan/phpstan-phpunit": "^1.0",
35-
"phpunit/phpunit": "^9.5",
34+
"phpunit/phpunit": "^9.0|^10.0",
3635
"roave/security-advisories": "dev-latest",
37-
"spatie/pest-plugin-test-time": "^1.1",
36+
"spatie/pest-plugin-test-time": "^1.0|^2.0",
3837
"spatie/ray": "^1.37"
3938
},
4039
"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)