Example #1
0
 function testPathNormalisation()
 {
     $this->assertEqual(SimpleUrl::normalisePath('https://host.com/I/am/here/../there/somewhere.php'), 'https://host.com/I/am/there/somewhere.php');
 }
Example #2
0
 function testPathNormalisationWithSinglePeriod()
 {
     $url = new SimpleUrl();
     $this->assertEqual($url->normalisePath('https://host.com/I/am/here/./../there/somewhere.php'), 'https://host.com/I/am/there/somewhere.php');
 }