Example #1
0
 /**
  * Test getCurrentPath with multiple urls given in ORIG_PATH_INFO
  * 
  * @dataProvider getSamplePathInfoStrings
  */
 public function testGetCurrentPath_MultipleUrlsInOrigPathInfo_ReturnString($sPathInfo)
 {
     unset($_SERVER['PATH_INFO']);
     $_SERVER['ORIG_PATH_INFO'] = $sPathInfo;
     $oRouter = new Router(array('Default_controller' => 'Ctrl', 'Default_function' => 'indexAction'));
     $this->assertTrue($oRouter->getCurrentPath() === $sPathInfo);
     unset($oRouter);
     unset($_SERVER['ORIG_PATH_INFO']);
 }