Skip to content

Commit cc36c97

Browse files
Update: support laravel 11
1 parent 94ffbf7 commit cc36c97

File tree

4 files changed

+39
-34
lines changed

4 files changed

+39
-34
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,22 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
php: [8.3, 8.2, 8.1, 8.0]
17-
laravel: [10.*, 9.*, 8.*]
17+
laravel: [11.*, 10.*, 9.*, 8.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20+
- laravel: 11.*
21+
testbench: 9.*
2022
- laravel: 10.*
2123
testbench: 8.*
2224
- laravel: 9.*
2325
testbench: ^7.0
2426
- laravel: 8.*
2527
testbench: ^6.23
2628
exclude:
29+
- laravel: 11.*
30+
php: 8.0
31+
- laravel: 11.*
32+
php: 8.1
2733
- laravel: 10.*
2834
php: 8.0
2935

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor
22
composer.lock
33
.phpunit.result.cache
4+
.phpunit.cache
45
.php-cs-fixer.cache

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
],
2323
"require": {
2424
"php": "^8.0",
25-
"illuminate/database": "^8.0|^9.0|^10.0",
26-
"illuminate/support": "^8.0|^9.0|^10.0",
27-
"illuminate/view": "^8.0|^9.0|^10.0"
25+
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
26+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
27+
"illuminate/view": "^8.0|^9.0|^10.0|^11.0"
2828
},
2929
"require-dev": {
3030
"friendsofphp/php-cs-fixer": "^3.5",
31-
"orchestra/testbench": "^6.0|^7.0|^8.0",
32-
"phpunit/phpunit": "^9.0"
31+
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
32+
"phpunit/phpunit": "^9.0|^10.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

phpunit.xml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
bootstrap="vendor/autoload.php"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
colors="true" verbose="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
processIsolation="false"
12-
stopOnFailure="false"
13-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
bootstrap="vendor/autoload.php"
5+
backupGlobals="false"
6+
colors="true"
7+
processIsolation="false"
8+
stopOnFailure="false"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
1412
>
15-
<coverage>
16-
<include>
17-
<directory suffix=".php">src/</directory>
18-
</include>
19-
</coverage>
20-
<testsuites>
21-
<testsuite name="Esign Test Suite">
22-
<directory>tests</directory>
23-
</testsuite>
24-
</testsuites>
25-
<php>
26-
<env name="DB_CONNECTION" value="mysql"/>
27-
<env name="DB_USERNAME" value="root"/>
28-
<env name="DB_DATABASE" value="laravel-linkable"/>
29-
<env name="DB_HOST" value="127.0.0.1" />
30-
<env name="DB_PORT" value="3306" />
31-
</php>
13+
<testsuites>
14+
<testsuite name="Esign Test Suite">
15+
<directory>tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
<php>
19+
<env name="DB_CONNECTION" value="mysql"/>
20+
<env name="DB_USERNAME" value="root"/>
21+
<env name="DB_DATABASE" value="laravel-linkable"/>
22+
<env name="DB_HOST" value="127.0.0.1"/>
23+
<env name="DB_PORT" value="3306"/>
24+
</php>
25+
<source>
26+
<include>
27+
<directory suffix=".php">src/</directory>
28+
</include>
29+
</source>
3230
</phpunit>

0 commit comments

Comments
 (0)