diff --git a/lib/Misc/URL.php b/lib/Misc/URL.php
new file mode 100644
index 0000000..e32b648
--- /dev/null
+++ b/lib/Misc/URL.php
@@ -0,0 +1,66 @@
+assertSame($exp, URL::normalize($in));
+ }
+
+ public function provideNormalizations() {
+ return [
+ ["/", "/"],
+ ["//example.com/", "//example.com/"],
+ ["http://example.com/", "http://example.com/"],
+ ["http://[::1]/", "http://[::1]/"],
+ ["HTTP://example.com/", "http://example.com/"],
+ ];
+ }
+}
diff --git a/tests/phpunit.dist.xml b/tests/phpunit.dist.xml
index 5617ddb..0086602 100644
--- a/tests/phpunit.dist.xml
+++ b/tests/phpunit.dist.xml
@@ -46,6 +46,7 @@
cases/Misc/TestValueInfo.php
cases/Misc/TestDate.php
cases/Misc/TestContext.php
+ cases/Misc/TestURL.php
cases/User/TestInternal.php