Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0e7995c

Browse files
committed
chore: add test case for relative protocol only
1 parent 0a03168 commit 0e7995c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/UrlTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public static function provideRuleSuccessConditionData(): \Generator
5252
yield 'custom protocol' => [new URL(protocols: ['ftp']), 'ftp://test.com'];
5353
yield 'allow relative protocol with protocol' => [new URL(allowRelativeProtocol: true), 'https://test.com'];
5454
yield 'allow relative protocol without protocol' => [new URL(allowRelativeProtocol: true), '//test.com'];
55+
yield 'allow relative protocol only' => [new URL(protocols: [], allowRelativeProtocol: true), '//test.com'];
5556
yield 'normalizer' => [new URL(normalizer: 'trim'), 'https://test.com '];
5657
}
5758

0 commit comments

Comments
 (0)