Skip to content

Commit 11a8c93

Browse files
committed
Prevent test from running on Laravel 6
1 parent f4643df commit 11a8c93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ResponseTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ public function test_responsable_with_invalid_key(): void
364364

365365
public function test_the_page_url_is_prefixed_with_the_proxy_prefix(): void
366366
{
367+
if (version_compare(app()->version(), '7', '<')) {
368+
$this->markTestSkipped('This test requires Laravel 7 or higher.');
369+
}
370+
367371
Request::setTrustedProxies(['1.2.3.4'], Request::HEADER_X_FORWARDED_PREFIX);
368372

369373
$request = Request::create('/user/123', 'GET');

0 commit comments

Comments
 (0)