Skip to content

Commit eb61d34

Browse files
authored
Support Laravel 11 (#16)
* Support Laravel 11 * wip
1 parent 61ba027 commit eb61d34

File tree

4 files changed

+34
-27
lines changed

4 files changed

+34
-27
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest]
1212
php: ['8.3', '8.2', '8.1']
13-
laravel: [10.*]
13+
laravel: [11.*, 10.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
15+
exclude:
16+
- laravel: 11.*
17+
php: 8.1
1518
include:
19+
- laravel: 11.*
20+
testbench: ^9.0
1621
- laravel: 10.*
1722
testbench: ^8.0
1823

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ composer.lock
33
docs
44
vendor
55
coverage
6-
.phpunit.result.cache
6+
.phpunit.cache
77
.idea
88
.php_cs.cache
99

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
},
2626
"require-dev": {
2727
"mockery/mockery": "^1.5",
28-
"orchestra/testbench": "^8.0",
29-
"phpunit/phpunit": "^9.5"
28+
"orchestra/testbench": "^8.0|^9.0",
29+
"phpunit/phpunit": "^10.5"
3030
},
3131
"autoload": {
3232
"psr-4": {

phpunit.xml.dist

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
colors="true"
7-
verbose="true"
7+
cacheDirectory=".phpunit.cache"
88
>
9-
<coverage>
10-
<include>
11-
<directory suffix=".php">src/</directory>
12-
</include>
13-
<report>
14-
<clover outputFile="build/coverage.xml"/>
15-
</report>
16-
</coverage>
17-
<testsuites>
18-
<testsuite name="Feature">
19-
<directory>tests/Feature</directory>
20-
</testsuite>
21-
<testsuite name="Unit">
22-
<directory>tests/Unit</directory>
23-
</testsuite>
24-
</testsuites>
25-
<logging/>
26-
<php>
27-
<server name="APP_ENV" value="testing"/>
28-
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
29-
</php>
9+
<coverage>
10+
<report>
11+
<clover outputFile="build/coverage.xml"/>
12+
</report>
13+
</coverage>
14+
<testsuites>
15+
<testsuite name="Feature">
16+
<directory>tests/Feature</directory>
17+
</testsuite>
18+
<testsuite name="Unit">
19+
<directory>tests/Unit</directory>
20+
</testsuite>
21+
</testsuites>
22+
<logging/>
23+
<php>
24+
<server name="APP_ENV" value="testing"/>
25+
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
26+
</php>
27+
<source>
28+
<include>
29+
<directory suffix=".php">src/</directory>
30+
</include>
31+
</source>
3032
</phpunit>

0 commit comments

Comments
 (0)