Skip to content
Browse files

adding some normalization unit tests

  • Loading branch information...
1 parent 467fc06 commit 15c461f9b2e0a46a8777fdcc4741e27ea7ec93d6 Shahar Evron committed with Apr 20, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 tests/Zend/Uri/UriTest.php
View
7 tests/Zend/Uri/UriTest.php
@@ -1100,7 +1100,12 @@ static public function normalizedUrlsProvider()
array('https://EXAMPLE.COM/FOO/BAR', 'https://example.com/FOO/BAR'),
array('FOO:/bar/with space?que%3fry#frag%ment#', 'foo:/bar/with%20space?que?ry#frag%25ment%23'),
array('/path/%68%65%6c%6c%6f/world', '/path/hello/world'),
- array('/foo/bar?url=http%3A%2F%2Fwww.example.com%2Fbaz', '/foo/bar?url=http://www.example.com/baz')
+ array('/foo/bar?url=http%3A%2F%2Fwww.example.com%2Fbaz', '/foo/bar?url=http://www.example.com/baz'),
+ array('File:///SitePages/fi%6ce%20has%20spaces', 'file:///SitePages/file%20has%20spaces'),
+ array('/foo/bar/../baz?do=action#showFragment', '/foo/baz?do=action#showFragment'),
+
+ // This should be left unchanged, at least for the generic Uri class
+ array('http://example.com:80/file?query=bar', 'http://example.com:80/file?query=bar'),
);
}

0 comments on commit 15c461f

Please sign in to comment.
Something went wrong with that request. Please try again.