コード例 #1
0
 /**
  * Tests the JApplicationWeb::detectRequestUri method.
  *
  * @return  void
  *
  * @dataProvider getDetectRequestUriData
  * @since   11.3
  */
 public function testDetectRequestUri($https, $phpSelf, $requestUri, $httpHost, $scriptName, $queryString, $expects)
 {
     if ($https !== null) {
         $_SERVER['HTTPS'] = $https;
     }
     $_SERVER['PHP_SELF'] = $phpSelf;
     $_SERVER['REQUEST_URI'] = $requestUri;
     $_SERVER['HTTP_HOST'] = $httpHost;
     $_SERVER['SCRIPT_NAME'] = $scriptName;
     $_SERVER['QUERY_STRING'] = $queryString;
     $this->assertThat($this->inspector->detectRequestUri(), $this->equalTo($expects));
 }