Example #1
0
 /**
  * Tests the function to explode a given URL to different forms
  */
 function testMakePaths()
 {
     $a = GSB_UrlUtil::makePaths('/', NULL);
     $this->assertEquals(array('/'), $a);
     $a = GSB_UrlUtil::makePaths('/1', NULL);
     $this->assertEquals(array('/1', '/'), $a);
     $a = GSB_UrlUtil::makePaths('/1/2.html', 'param=1');
     $this->assertEquals(array('/1/2.html?param=1', '/1/2.html', '/', '/1/'), $a);
 }