Skip to content

Commit 3b1317a

Browse files
committed
Add support to Laravel 11
1 parent d564f44 commit 3b1317a

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.2|^8.0",
25-
"illuminate/support": "^6.5|^7.0|^8.0|^9.0"
24+
"php": "^8.2",
25+
"illuminate/support": "^11.0"
2626
},
2727
"require-dev": {
28-
"orchestra/testbench": "^4.0|^5.0|^6.0",
29-
"phpunit/phpunit": "^8.0|^9.0"
28+
"orchestra/testbench": "^9.0",
29+
"phpunit/phpunit": "^11.0"
3030
},
3131
"autoload": {
3232
"psr-4": {

phpunit.xml.dist

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit bootstrap="vendor/autoload.php"
33
backupGlobals="false"
4-
backupStaticAttributes="false"
54
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
105
processIsolation="false"
6+
displayDetailsOnPhpunitDeprecations="true"
117
stopOnFailure="false">
128
<testsuites>
139
<testsuite name="Test Suite">
1410
<directory>tests</directory>
1511
</testsuite>
1612
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
13+
<php>
14+
<env name="PCOV_DIRECTORY" value="src"/>
15+
<env name="XDEBUG_MODE" value="coverage"/>
16+
</php>
2917
</phpunit>

tests/TrailingSlashUrlGeneratorTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44

55
class TrailingSlashUrlGeneratorTest extends TestCase
66
{
7-
/** @test */
8-
public function url_ends_with_trailing_slash()
7+
public function test_url_ends_with_trailing_slash(): void
98
{
109
$this->assertStringEndsWith('/', url('profile'));
1110
}
1211

13-
/** @test */
14-
public function url_does_not_end_with_trailing_slash_when_disabled()
12+
public function test_url_does_not_end_with_trailing_slash_when_disabled(): void
1513
{
1614
config()->set('laravel-trailing-slash.active', false);
1715
$this->assertStringEndsNotWith('/', url('profile'));

0 commit comments

Comments
 (0)