Skip to content

Commit b6b9f4f

Browse files
committed
Update to accept Laravel 11 and PHPUnit 10
1 parent 66638c1 commit b6b9f4f

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ composer.lock
33
vendor
44
tests/temp
55
.idea
6+
.phpunit.cache
67
.phpunit.result.cache
78
.php-cs-fixer.cache
89
tests/CreatePermissionCustomTables.php

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"homepage": "https://github.com/spatie/laravel-permission",
2424
"require": {
2525
"php": "^8.0",
26-
"illuminate/auth": "^8.12|^9.0|^10.0",
27-
"illuminate/container": "^8.12|^9.0|^10.0",
28-
"illuminate/contracts": "^8.12|^9.0|^10.0",
29-
"illuminate/database": "^8.12|^9.0|^10.0"
26+
"illuminate/auth": "^8.12|^9.0|^10.0|^11.0",
27+
"illuminate/container": "^8.12|^9.0|^10.0|^11.0",
28+
"illuminate/contracts": "^8.12|^9.0|^10.0|^11.0",
29+
"illuminate/database": "^8.12|^9.0|^10.0|^11.0"
3030
},
3131
"require-dev": {
3232
"laravel/passport": "^11.0",
33-
"orchestra/testbench": "^6.23|^7.0|^8.0",
34-
"phpunit/phpunit": "^9.4"
33+
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
34+
"phpunit/phpunit": "^9.4|^10.1"
3535
},
3636
"minimum-stability": "dev",
3737
"prefer-stable": true,

phpunit.xml.dist

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
bootstrap="vendor/autoload.php"
4+
colors="true"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
6+
>
7+
<source>
48
<include>
59
<directory suffix=".php">src/</directory>
610
</include>
7-
</coverage>
11+
</source>
812
<testsuites>
913
<testsuite name="Permissions Test Suite">
1014
<directory>tests</directory>

0 commit comments

Comments
 (0)