Skip to content

Commit 713b5d1

Browse files
committed
Upgrade to Laravel Zero v11
1 parent a486fa8 commit 713b5d1

File tree

4 files changed

+25
-55
lines changed

4 files changed

+25
-55
lines changed

.github/workflows/run-tests.yml

+2-23
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,11 @@ jobs:
99
tests:
1010
strategy:
1111
matrix:
12-
os: [Ubuntu, Windows, macOS]
13-
php: [8.0, 8.1]
14-
# php: [7.2, 7.3, 7.4, 8.0]
15-
16-
include:
17-
- os: Ubuntu
18-
os-version: ubuntu-latest
19-
20-
- os: Windows
21-
os-version: windows-latest
22-
23-
- os: macOS
24-
os-version: macos-latest
25-
26-
- os: macOS-11
27-
os-version: macos-11.0
28-
php: 8.0
29-
30-
- os: macOS-11
31-
os-version: macos-11.0
32-
php: 8.1
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
php: [8.2]
3314

3415
name: ${{ matrix.os }} - PHP ${{ matrix.php }}
3516

36-
runs-on: ${{ matrix.os-version }}
37-
3817
steps:
3918
- name: Checkout code
4019
uses: actions/checkout@v1

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
/.vagrant
55
.phpunit.result.cache
66
/storage
7+
.phpunit.cache/
78
phpunit.xml
89
composer.lock

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
19+
"php": "^8.2",
2020
"ext-json": "*",
2121
"ext-pcntl": "*",
2222
"ext-posix": "*",
2323
"guzzlehttp/psr7": "^1.7"
2424
},
2525
"require-dev": {
2626
"guzzlehttp/guzzle": "^7.5",
27-
"laravel-zero/framework": "^10.0",
27+
"laravel-zero/framework": "^11.0",
2828
"mockery/mockery": "^1.3.1",
2929
"nunomaduro/laravel-console-menu": "^3.4",
30-
"phpunit/phpunit": "^9.0",
30+
"phpunit/phpunit": "^10.5",
3131
"squizlabs/php_codesniffer": "^3.5",
32-
"tightenco/tlint": "^6.0"
32+
"tightenco/tlint": "^9.3"
3333
},
3434
"autoload": {
3535
"psr-4": {
@@ -50,7 +50,7 @@
5050
"optimize-autoloader": true,
5151
"platform-check": false,
5252
"platform": {
53-
"php": "8.1"
53+
"php": "8.2"
5454
}
5555
},
5656
"scripts": {

phpunit.xml.dist

+17-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
bootstrap="vendor/autoload.php"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false"
12-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
13-
<coverage processUncoveredFiles="true">
14-
<include>
15-
<directory suffix=".php">./app</directory>
16-
</include>
17-
</coverage>
18-
<testsuites>
19-
<testsuite name="Feature">
20-
<directory suffix="Test.php">./tests/Feature</directory>
21-
</testsuite>
22-
<testsuite name="Unit">
23-
<directory suffix="Test.php">./tests/Unit</directory>
24-
</testsuite>
25-
</testsuites>
26-
<php>
27-
<server name="APP_ENV" value="testing"/>
28-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Feature">
5+
<directory suffix="Test.php">./tests/Feature</directory>
6+
</testsuite>
7+
<testsuite name="Unit">
8+
<directory suffix="Test.php">./tests/Unit</directory>
9+
</testsuite>
10+
</testsuites>
11+
<php>
12+
<server name="APP_ENV" value="testing"/>
13+
</php>
14+
<source>
15+
<include>
16+
<directory suffix=".php">./app</directory>
17+
</include>
18+
</source>
2919
</phpunit>

0 commit comments

Comments
 (0)