Skip to content

Commit

Permalink
Add test for IDN hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jul 22, 2024
1 parent d6f4097 commit 761452b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/Assert/URITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public static function provideURI(): array
'urn' => [true, 'urn:x-simplesamlphp:phpunit'],
'same-doc' => [true, '#_53d830ab1be17291a546c95c7f1cdf8d3d23c959e6'],
'url' => [true, 'https://www.simplesamlphp.org'],
'bogus' => [false, 'https://a⒈com'],
'invalid_char' => [false, 'https://a⒈com'],
'intl' => [true, 'https://niño.com'],
'spn' => [true, 'spn:a4cf592f-a64c-46ff-a788-b260f474525b'],
];
}
Expand All @@ -90,7 +91,8 @@ public static function provideURL(): array
'url' => [true, 'https://www.simplesamlphp.org'],
'same-doc' => [false, '#_53d830ab1be17291a546c95c7f1cdf8d3d23c959e6'],
'urn' => [false, 'urn:x-simplesamlphp:phpunit'],
'bogus' => [false, 'stupid value'],
'invalid_char' => [false, 'https://a⒈com'],
'intl' => [true, 'https://niño.com'],
'spn' => [false, 'spn:a4cf592f-a64c-46ff-a788-b260f474525b'],
];
}
Expand All @@ -105,7 +107,8 @@ public static function provideURN(): array
'urn' => [true, 'urn:x-simplesamlphp:phpunit'],
'url' => [false, 'https://www.simplesamlphp.org'],
'same-doc' => [false, '#_53d830ab1be17291a546c95c7f1cdf8d3d23c959e6'],
'bogus' => [false, 'stupid value'],
'invalid_char' => [false, 'https://a⒈com'],
'intl' => [false, 'https://niño.com'],
'spn' => [false, 'spn:a4cf592f-a64c-46ff-a788-b260f474525b'],
];
}
Expand Down

0 comments on commit 761452b

Please sign in to comment.