You are here

public function RequestTest::getBaseUrlData 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::getBaseUrlData()

File

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

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function getBaseUrlData() {
  return array(
    array(
      '/fruit/strawberry/1234index.php/blah',
      array(
        'SCRIPT_FILENAME' => 'E:/Sites/cc-new/public_html/fruit/index.php',
        'SCRIPT_NAME' => '/fruit/index.php',
        'PHP_SELF' => '/fruit/index.php',
      ),
      '/fruit',
      '/strawberry/1234index.php/blah',
    ),
    array(
      '/fruit/strawberry/1234index.php/blah',
      array(
        'SCRIPT_FILENAME' => 'E:/Sites/cc-new/public_html/index.php',
        'SCRIPT_NAME' => '/index.php',
        'PHP_SELF' => '/index.php',
      ),
      '',
      '/fruit/strawberry/1234index.php/blah',
    ),
    array(
      '/foo%20bar/',
      array(
        'SCRIPT_FILENAME' => '/home/John Doe/public_html/foo bar/app.php',
        'SCRIPT_NAME' => '/foo bar/app.php',
        'PHP_SELF' => '/foo bar/app.php',
      ),
      '/foo%20bar',
      '/',
    ),
    array(
      '/foo%20bar/home',
      array(
        'SCRIPT_FILENAME' => '/home/John Doe/public_html/foo bar/app.php',
        'SCRIPT_NAME' => '/foo bar/app.php',
        'PHP_SELF' => '/foo bar/app.php',
      ),
      '/foo%20bar',
      '/home',
    ),
    array(
      '/foo%20bar/app.php/home',
      array(
        'SCRIPT_FILENAME' => '/home/John Doe/public_html/foo bar/app.php',
        'SCRIPT_NAME' => '/foo bar/app.php',
        'PHP_SELF' => '/foo bar/app.php',
      ),
      '/foo%20bar/app.php',
      '/home',
    ),
    array(
      '/foo%20bar/app.php/home%3Dbaz',
      array(
        'SCRIPT_FILENAME' => '/home/John Doe/public_html/foo bar/app.php',
        'SCRIPT_NAME' => '/foo bar/app.php',
        'PHP_SELF' => '/foo bar/app.php',
      ),
      '/foo%20bar/app.php',
      '/home%3Dbaz',
    ),
    array(
      '/foo/bar+baz',
      array(
        'SCRIPT_FILENAME' => '/home/John Doe/public_html/foo/app.php',
        'SCRIPT_NAME' => '/foo/app.php',
        'PHP_SELF' => '/foo/app.php',
      ),
      '/foo',
      '/bar+baz',
    ),
  );
}