Skip to content

Commit ba0be34

Browse files
authored
Add test-cases for urn with prefixed or trailing newlines
1 parent 057a9e9 commit ba0be34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Assert/URITest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public static function provideURN(): array
110110
{
111111
return [
112112
'urn' => [true, 'urn:x-simplesamlphp:phpunit'],
113+
'newline_prefix' => [false, "\nurn:x-simplesamlphp:phpunit"],
114+
'newline_suffix' => [false, "urn:x-simplesamlphp:phpunit\n"],
113115
'url' => [false, 'https://www.simplesamlphp.org'],
114116
'same-doc' => [false, '#_53d830ab1be17291a546c95c7f1cdf8d3d23c959e6'],
115117
'invalid_char' => [false, 'https://a⒈com'],

0 commit comments

Comments
 (0)