You are here

public function RequestTest::iisRequestUriProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::iisRequestUriProvider()

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 1695

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function iisRequestUriProvider() {
  return array(
    array(
      array(
        'X_ORIGINAL_URL' => '/foo/bar',
      ),
      array(),
      '/foo/bar',
    ),
    array(
      array(
        'X_REWRITE_URL' => '/foo/bar',
      ),
      array(),
      '/foo/bar',
    ),
    array(
      array(),
      array(
        'IIS_WasUrlRewritten' => '1',
        'UNENCODED_URL' => '/foo/bar',
      ),
      '/foo/bar',
    ),
    array(
      array(
        'X_ORIGINAL_URL' => '/foo/bar',
      ),
      array(
        'HTTP_X_ORIGINAL_URL' => '/foo/bar',
      ),
      '/foo/bar',
    ),
    array(
      array(
        'X_ORIGINAL_URL' => '/foo/bar',
      ),
      array(
        'IIS_WasUrlRewritten' => '1',
        'UNENCODED_URL' => '/foo/bar',
      ),
      '/foo/bar',
    ),
    array(
      array(
        'X_ORIGINAL_URL' => '/foo/bar',
      ),
      array(
        'HTTP_X_ORIGINAL_URL' => '/foo/bar',
        'IIS_WasUrlRewritten' => '1',
        'UNENCODED_URL' => '/foo/bar',
      ),
      '/foo/bar',
    ),
    array(
      array(),
      array(
        'ORIG_PATH_INFO' => '/foo/bar',
      ),
      '/foo/bar',
    ),
    array(
      array(),
      array(
        'ORIG_PATH_INFO' => '/foo/bar',
        'QUERY_STRING' => 'foo=bar',
      ),
      '/foo/bar?foo=bar',
    ),
  );
}