Пример #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');
 }
Пример #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');
 }