Skip to content

Commit dcf5cf4

Browse files
committed
Add Laravel 10 support + upgrade to PHPUnit 10
1 parent 49c84c6 commit dcf5cf4

File tree

4 files changed

+23
-32
lines changed

4 files changed

+23
-32
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ composer.lock
55
/build
66
.phpunit.result.cache
77
.php_cs.cache
8+
/.phpunit.cache

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"test": "./vendor/bin/phpunit"
1616
},
1717
"require": {
18-
"illuminate/http": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0",
19-
"illuminate/console": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0",
20-
"illuminate/support": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0",
21-
"illuminate/filesystem": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0"
18+
"illuminate/http": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0",
19+
"illuminate/console": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0",
20+
"illuminate/support": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0",
21+
"illuminate/filesystem": "5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "5.7 | 6.0 | 7.0 | 7.5 | 8.4 | ^8.5 | ^9.3",
24+
"phpunit/phpunit": "5.7 | 6.0 | 7.0 | 7.5 | 8.4 | ^8.5 | ^9.3 | ^10.0",
2525
"mockery/mockery": "^1.1.0 | ^1.3.0",
2626
"friendsofphp/php-cs-fixer": "^2.16.0",
2727
"overtrue/phplint": "^1.1 | ^2.0"

phpunit.xml.dist

+11-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
processIsolation="false"
9-
stopOnFailure="false"
10-
bootstrap="vendor/autoload.php">
11-
<testsuites>
12-
<testsuite name="Application Test Suite">
13-
<directory>./tests/</directory>
14-
</testsuite>
15-
</testsuites>
16-
<filter>
17-
<whitelist>
18-
<directory suffix=".php">src/</directory>
19-
</whitelist>
20-
</filter>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/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="Application Test Suite">
10+
<directory>./tests/</directory>
11+
</testsuite>
12+
</testsuites>
2113
</phpunit>

readme.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,12 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for how to contribute changes. All contri
6969

7070
> Laravel 5/6 should be still supported but we are not testing them via automation sccripts
7171
72-
| Version | PHP |
73-
| ------- | ----------- |
74-
| 9.* | 8.1-node-17 |
75-
| 9.* | 8.0-node-17 |
76-
| 8.* | 8.1-node-17 |
77-
| 8.* | 8.0-node-17 |
78-
| 8.* | 7.4-node-17 |
79-
| 7.* | 7.4-node-17 |
72+
| Version | PHP |
73+
|---------|---------------|
74+
| 10.* | 8.1, 8.2 |
75+
| 9.* | 8.0, 8.1 |
76+
| 8.* | 7.4, 8.0, 8.1 |
77+
| 7.* | 7.4 |
8078

8179

8280

0 commit comments

Comments
 (0)