Skip to content

Commit 044ea53

Browse files
Laravel 10.x Compatibility (#19)
Co-authored-by: Michael Dyrynda <[email protected]>
1 parent 46356cb commit 044ea53

File tree

3 files changed

+25
-39
lines changed

3 files changed

+25
-39
lines changed

.github/workflows/run-tests.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [8.1,8.0, 7.4, 7.3]
15-
laravel: [^8.12, ^9.0]
16-
exclude:
17-
- php: 7.3
18-
laravel: '^9.0'
19-
- php: 7.4
20-
laravel: '^9.0'
14+
php: [8.2,8.1]
15+
laravel: [10.0]
2116

2217
name: P${{ matrix.php }} - L${{ matrix.laravel }}
2318

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^7.3|^8.0",
19-
"illuminate/support": "^8.0|^9.0",
20-
"illuminate/console": "^8.0|^9.0",
21-
"illuminate/database": "^8.0|^9.0",
22-
"illuminate/auth": "^8.0|^9.0",
23-
"illuminate/notifications": "^8.0|^9.0"
18+
"php": "^8.1",
19+
"illuminate/support": "^10.0",
20+
"illuminate/console": "^10.0",
21+
"illuminate/database": "^10.0",
22+
"illuminate/auth": "^10.0",
23+
"illuminate/notifications": "^10.0"
2424
},
2525
"autoload": {
2626
"psr-4": {
2727
"Dyrynda\\Artisan\\": "src/"
2828
}
2929
},
3030
"require-dev": {
31-
"mockery/mockery": "^1.4.2",
32-
"phpunit/phpunit": "^9.3.3",
33-
"orchestra/testbench": "^6.0|^7.0"
31+
"mockery/mockery": "^1.4.4",
32+
"phpunit/phpunit": "^9.6.0 || ^10.0.7",
33+
"orchestra/testbench": "^8.0"
3434
},
3535
"autoload-dev": {
3636
"psr-4": {

phpunit.xml

+14-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Package Test Suite">
14-
<directory>./tests/</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<php>
23-
<env name="MAIL_DRIVER" value="null"/>
24-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Package Test Suite">
10+
<directory>./tests/</directory>
11+
</testsuite>
12+
</testsuites>
13+
<php>
14+
<env name="MAIL_MAILER" value="array"/>
15+
</php>
2516
</phpunit>

0 commit comments

Comments
 (0)