You are here

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

File

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

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function getRelativeUriForPathData() {
  return array(
    array(
      'me.png',
      '/foo',
      '/me.png',
    ),
    array(
      '../me.png',
      '/foo/bar',
      '/me.png',
    ),
    array(
      'me.png',
      '/foo/bar',
      '/foo/me.png',
    ),
    array(
      '../baz/me.png',
      '/foo/bar/b',
      '/foo/baz/me.png',
    ),
    array(
      '../../fooz/baz/me.png',
      '/foo/bar/b',
      '/fooz/baz/me.png',
    ),
    array(
      'baz/me.png',
      '/foo/bar/b',
      'baz/me.png',
    ),
  );
}