22 [
'http://example.org/',
'http://example.org/'],
23 [
'HTTP://www.EXAMPLE.com/',
'http://www.example.com/'],
24 [
'http://example.org/%7Eevert',
'http://example.org/~evert'],
25 [
'http://example.org/./evert',
'http://example.org/evert'],
26 [
'http://example.org/../evert',
'http://example.org/evert'],
27 [
'http://example.org/foo/../evert',
'http://example.org/evert'],
31 [
'http://example.org',
'http://example.org/'],
32 [
'http://example.org:/',
'http://example.org/'],
33 [
'http://example.org:80/',
'http://example.org/'],
if(php_sapi_name() !='cli') $in
An exception for terminatinating execution or to throw for unit testing.
testNormalize($in, $out)
@dataProvider normalizeData
normalize($uri)
Takes a URI or partial URI as its argument, and normalizes it.