Skip to content

Commit 927c2ab

Browse files
authored
Merge pull request #423 from opcodesio/laravel-12-support
2 parents 876166d + e29bace commit 927c2ab

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
1616
php: [8.2, 8.1, 8.0]
17-
laravel: [9.*, 10.*, 11.*]
17+
laravel: [9.*, 10.*, 11.*, 12.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
exclude:
2020
- php: 8.0
2121
laravel: 10.*
2222
- php: 8.0
2323
laravel: 11.*
24+
- php: 8.0
25+
laravel: 12.*
2426
- php: 8.1
2527
laravel: 11.*
28+
- php: 8.1
29+
laravel: 12.*
2630
- php: 8.2
2731
laravel: 9.*
2832
include:
@@ -38,6 +42,10 @@ jobs:
3842
testbench: 9.*
3943
pest: 2.*
4044
collision: 8.*
45+
- laravel: 12.*
46+
testbench: 10.*
47+
pest: 3.*
48+
collision: 8.*
4149

4250
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
4351

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
],
2121
"require": {
2222
"php": "^8.0",
23-
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0",
23+
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0",
2424
"opcodesio/mail-parser": "^0.1.6"
2525
},
2626
"require-dev": {
2727
"guzzlehttp/guzzle": "^7.2",
2828
"itsgoingd/clockwork": "^5.1",
2929
"laravel/pint": "^1.0",
3030
"nunomaduro/collision": "^7.0|^8.0",
31-
"orchestra/testbench": "^7.6|^8.0|^9.0",
32-
"pestphp/pest": "^2.0",
33-
"pestphp/pest-plugin-laravel": "^2.0",
31+
"orchestra/testbench": "^7.6|^8.0|^9.0|^10.0",
32+
"pestphp/pest": "^2.0|^3.7",
33+
"pestphp/pest-plugin-laravel": "^2.0|^3.1",
3434
"spatie/test-time": "^1.3"
3535
},
3636
"suggest": {

tests/Pest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function generateLogFile(?string $fileName = null, ?string $content = null, bool
3939
$fileName = \Illuminate\Support\Str::random().'.log';
4040
}
4141

42+
$fileName = str_replace('/', DIRECTORY_SEPARATOR, $fileName);
43+
4244
$path = storage_path('logs'.DIRECTORY_SEPARATOR.$fileName);
4345
$folder = dirname($path);
4446

tests/Unit/FilePathsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
expect($files)->toHaveCount(1);
121121
$file = $files[0];
122122
expect($file->path)->toBe($originalFile->path)
123-
->and($file->displayPath)->toBe('TestPath/first.log')
123+
->and($file->displayPath)->toBe('TestPath'.DIRECTORY_SEPARATOR.'first.log')
124124
->and($file->subFolder)->toBe('TestPath');
125125
});
126126

@@ -136,6 +136,6 @@
136136
expect($files)->toHaveCount(1);
137137
$file = $files[0];
138138
expect($file->path)->toBe($originalFile->path)
139-
->and($file->displayPath)->toBe('TestPath/first.log')
139+
->and($file->displayPath)->toBe('TestPath'.DIRECTORY_SEPARATOR.'first.log')
140140
->and($file->subFolder)->toBe('TestPath');
141141
});

0 commit comments

Comments
 (0)