Skip to content

Commit 8722ae4

Browse files
authored
Add support for Laravel 10 (#1)
* Add support for Laravel 10
1 parent 8668ba4 commit 8722ae4

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: [8.0, 7.4]
15-
laravel: [9.*, 8.*, 7.*, 6.*, 5.8.*]
14+
php: [8.2, 8.1, 8.0, 7.4]
15+
laravel: [10.*, 9.*, 8.*, 7.*, 6.*, 5.8.*]
1616
dependency-version: [prefer-lowest, prefer-stable]
1717
os: [ubuntu-latest, windows-latest]
1818
include:
19+
- laravel: 10.*
20+
testbench: 8.*
1921
- laravel: 9.*
2022
testbench: 7.*
2123
- laravel: 8.*
@@ -27,14 +29,26 @@ jobs:
2729
- laravel: 5.8.*
2830
testbench: 3.8.*
2931
exclude:
32+
- laravel: 10.*
33+
php: 8.0
34+
- laravel: 10.*
35+
php: 7.4
3036
- laravel: 9.*
3137
php: 7.4
3238
- laravel: 8.*
33-
php: 7.4
39+
php: 8.2
3440
- laravel: 7.*
35-
php: 8.0
41+
php: 8.2
42+
- laravel: 7.*
43+
php: 8.1
44+
- laravel: 6.*
45+
php: 8.2
3646
- laravel: 6.*
37-
php: 8
47+
php: 8.1
48+
- laravel: 5.8.*
49+
php: 8.2
50+
- laravel: 5.8.*
51+
php: 8.1
3852
- laravel: 5.8.*
3953
php: 8.0
4054

@@ -45,11 +59,10 @@ jobs:
4559
uses: actions/checkout@v1
4660

4761
- name: Setup PHP
48-
uses: shivammathur/setup-php@v1
62+
uses: shivammathur/setup-php@v2
4963
with:
5064
php-version: ${{ matrix.php }}
51-
extension-csv: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
52-
extensions:
65+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
5366
coverage: none
5467

5568
- name: Install dependencies

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
}
1414
],
1515
"require": {
16-
"php": ">=7.1",
17-
"laravel/framework": "^5.2 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
16+
"php": ">=7.1 || ^8.0",
17+
"laravel/framework": "^5.2 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
1818
"ext-json": "*"
1919
},
2020
"require-dev": {
21-
"orchestra/testbench": "^7.1"
21+
"orchestra/testbench": "^7.1 || ^8.0",
22+
"phpunit/phpunit": "^8.5.23 || ^9.5.10"
2223
},
2324
"autoload": {
2425
"psr-4": {
@@ -30,9 +31,10 @@
3031
"\"Programic\\\\LaravelConvertCaseMiddleware\\Tests\\": "tests"
3132
}
3233
},
34+
"minimum-stability": "dev",
3335
"scripts": {
3436
"test": [
35-
"vendor/bin/phpunit"
37+
"vendor/bin/phpunit tests"
3638
]
3739
}
3840
}

tests/TestCase.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
namespace Programic\LaravelConvertCaseMiddleware\Tests;
44

5-
use Orchestra\Testbench\TestCase as Orchestra;
6-
7-
abstract class TestCase extends Orchestra
5+
abstract class TestCase extends \Orchestra\Testbench\TestCase
86
{
9-
public function setUp(): void
10-
{
11-
parent::setUp();
12-
}
7+
//
138
}

0 commit comments

Comments
 (0)