You are here

public function UriTest::getResolveTestCases in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/UriTest.php \GuzzleHttp\Tests\Psr7\UriTest::getResolveTestCases()

File

vendor/guzzlehttp/psr7/tests/UriTest.php, line 114

Class

UriTest
@covers GuzzleHttp\Psr7\Uri

Namespace

GuzzleHttp\Tests\Psr7

Code

public function getResolveTestCases() {
  return [
    //[self::RFC3986_BASE, 'g:h',           'g:h'],
    [
      self::RFC3986_BASE,
      'g',
      'http://a/b/c/g',
    ],
    [
      self::RFC3986_BASE,
      './g',
      'http://a/b/c/g',
    ],
    [
      self::RFC3986_BASE,
      'g/',
      'http://a/b/c/g/',
    ],
    [
      self::RFC3986_BASE,
      '/g',
      'http://a/g',
    ],
    [
      self::RFC3986_BASE,
      '//g',
      'http://g',
    ],
    [
      self::RFC3986_BASE,
      '?y',
      'http://a/b/c/d;p?y',
    ],
    [
      self::RFC3986_BASE,
      'g?y',
      'http://a/b/c/g?y',
    ],
    [
      self::RFC3986_BASE,
      '#s',
      'http://a/b/c/d;p?q#s',
    ],
    [
      self::RFC3986_BASE,
      'g#s',
      'http://a/b/c/g#s',
    ],
    [
      self::RFC3986_BASE,
      'g?y#s',
      'http://a/b/c/g?y#s',
    ],
    [
      self::RFC3986_BASE,
      ';x',
      'http://a/b/c/;x',
    ],
    [
      self::RFC3986_BASE,
      'g;x',
      'http://a/b/c/g;x',
    ],
    [
      self::RFC3986_BASE,
      'g;x?y#s',
      'http://a/b/c/g;x?y#s',
    ],
    [
      self::RFC3986_BASE,
      '',
      self::RFC3986_BASE,
    ],
    [
      self::RFC3986_BASE,
      '.',
      'http://a/b/c/',
    ],
    [
      self::RFC3986_BASE,
      './',
      'http://a/b/c/',
    ],
    [
      self::RFC3986_BASE,
      '..',
      'http://a/b/',
    ],
    [
      self::RFC3986_BASE,
      '../',
      'http://a/b/',
    ],
    [
      self::RFC3986_BASE,
      '../g',
      'http://a/b/g',
    ],
    [
      self::RFC3986_BASE,
      '../..',
      'http://a/',
    ],
    [
      self::RFC3986_BASE,
      '../../',
      'http://a/',
    ],
    [
      self::RFC3986_BASE,
      '../../g',
      'http://a/g',
    ],
    [
      self::RFC3986_BASE,
      '../../../g',
      'http://a/g',
    ],
    [
      self::RFC3986_BASE,
      '../../../../g',
      'http://a/g',
    ],
    [
      self::RFC3986_BASE,
      '/./g',
      'http://a/g',
    ],
    [
      self::RFC3986_BASE,
      '/../g',
      'http://a/g',
    ],
    [
      self::RFC3986_BASE,
      'g.',
      'http://a/b/c/g.',
    ],
    [
      self::RFC3986_BASE,
      '.g',
      'http://a/b/c/.g',
    ],
    [
      self::RFC3986_BASE,
      'g..',
      'http://a/b/c/g..',
    ],
    [
      self::RFC3986_BASE,
      '..g',
      'http://a/b/c/..g',
    ],
    [
      self::RFC3986_BASE,
      './../g',
      'http://a/b/g',
    ],
    [
      self::RFC3986_BASE,
      'foo////g',
      'http://a/b/c/foo////g',
    ],
    [
      self::RFC3986_BASE,
      './g/.',
      'http://a/b/c/g/',
    ],
    [
      self::RFC3986_BASE,
      'g/./h',
      'http://a/b/c/g/h',
    ],
    [
      self::RFC3986_BASE,
      'g/../h',
      'http://a/b/c/h',
    ],
    [
      self::RFC3986_BASE,
      'g;x=1/./y',
      'http://a/b/c/g;x=1/y',
    ],
    [
      self::RFC3986_BASE,
      'g;x=1/../y',
      'http://a/b/c/y',
    ],
    [
      'http://u@a/b/c/d;p?q',
      '.',
      'http://u@a/b/c/',
    ],
    [
      'http://u:p@a/b/c/d;p?q',
      '.',
      'http://u:p@a/b/c/',
    ],
  ];
}