Skip to content

Commit 79c4cb9

Browse files
authored
Merge pull request spatie#511 from spatie/l13-support
Add Laravel 13 and PHP 8.5 support
2 parents 22c1964 + 0985fbe commit 79c4cb9

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ jobs:
1414
fail-fast: true
1515
matrix:
1616
php: [8.4, 8.5]
17-
laravel: [12.*]
17+
laravel: [13.*, 12.*]
1818
dependency-version: [prefer-stable]
19+
include:
20+
- laravel: 13.*
21+
testbench: 11.*
22+
- laravel: 12.*
23+
testbench: 10.*
1924

2025
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2126

@@ -37,7 +42,7 @@ jobs:
3742
3843
- name: Install dependencies
3944
run: |
40-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
45+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4146
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
4247
4348
- name: Execute tests

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
2121
],
2222
"require": {
2323
"php": "^8.4",
24-
"illuminate/cache": "^12.0",
25-
"illuminate/container": "^12.0",
26-
"illuminate/console": "^12.0",
27-
"illuminate/http": "^12.0",
28-
"illuminate/support": "^12.0",
24+
"illuminate/cache": "^12.0|^13.0",
25+
"illuminate/container": "^12.0|^13.0",
26+
"illuminate/console": "^12.0|^13.0",
27+
"illuminate/http": "^12.0|^13.0",
28+
"illuminate/support": "^12.0|^13.0",
2929
"nesbot/carbon": "^3.0",
3030
"spatie/laravel-package-tools": "^1.9"
3131
},
3232
"require-dev": {
3333
"larastan/larastan": "^3.9",
34-
"laravel/framework": "^12.0",
34+
"laravel/framework": "^12.0|^13.0",
3535
"laravel/pint": "^1.13.7",
3636
"mockery/mockery": "^1.6",
37-
"orchestra/testbench": "^10.0",
37+
"orchestra/testbench": "^10.0|^11.0",
3838
"pestphp/pest": "^4.0"
3939
},
4040
"autoload": {

phpunit.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
<directory>tests</directory>
66
</testsuite>
77
</testsuites>
8-
<logging>
9-
<junit outputFile="build/report.junit.xml"/>
10-
</logging>
118
<php>
129
<env name="APP_DEBUG" value="true"/>
1310
</php>

tests/Commands/ClearCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
});
5252

5353
it('will fire events when clearing the cache', function () {
54+
$this->app['config']->set('responsecache.cache.store', 'array');
55+
$this->app->forgetInstance('responsecache');
56+
5457
Event::fake();
5558

5659
Artisan::call('responsecache:clear');

0 commit comments

Comments
 (0)