public function LinkTest::getGetUriTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/LinkTest.php \Symfony\Component\DomCrawler\Tests\LinkTest::getGetUriTests()
File
- vendor/
symfony/ dom-crawler/ Tests/ LinkTest.php, line 101
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function getGetUriTests() {
return array(
array(
'/foo',
'http://localhost/bar/foo/',
'http://localhost/foo',
),
array(
'/foo',
'http://localhost/bar/foo',
'http://localhost/foo',
),
array(
'
/foo',
'http://localhost/bar/foo/',
'http://localhost/foo',
),
array(
'/foo
',
'http://localhost/bar/foo',
'http://localhost/foo',
),
array(
'foo',
'http://localhost/bar/foo/',
'http://localhost/bar/foo/foo',
),
array(
'foo',
'http://localhost/bar/foo',
'http://localhost/bar/foo',
),
array(
'',
'http://localhost/bar/',
'http://localhost/bar/',
),
array(
'#',
'http://localhost/bar/',
'http://localhost/bar/#',
),
array(
'#bar',
'http://localhost/bar?a=b',
'http://localhost/bar?a=b#bar',
),
array(
'#bar',
'http://localhost/bar/#foo',
'http://localhost/bar/#bar',
),
array(
'?a=b',
'http://localhost/bar#foo',
'http://localhost/bar?a=b',
),
array(
'?a=b',
'http://localhost/bar/',
'http://localhost/bar/?a=b',
),
array(
'http://login.foo.com/foo',
'http://localhost/bar/',
'http://login.foo.com/foo',
),
array(
'https://login.foo.com/foo',
'https://localhost/bar/',
'https://login.foo.com/foo',
),
array(
'mailto:foo@bar.com',
'http://localhost/foo',
'mailto:foo@bar.com',
),
// tests schema relative URL (issue #7169)
array(
'//login.foo.com/foo',
'http://localhost/bar/',
'http://login.foo.com/foo',
),
array(
'//login.foo.com/foo',
'https://localhost/bar/',
'https://login.foo.com/foo',
),
array(
'?foo=2',
'http://localhost?foo=1',
'http://localhost?foo=2',
),
array(
'?foo=2',
'http://localhost/?foo=1',
'http://localhost/?foo=2',
),
array(
'?foo=2',
'http://localhost/bar?foo=1',
'http://localhost/bar?foo=2',
),
array(
'?foo=2',
'http://localhost/bar/?foo=1',
'http://localhost/bar/?foo=2',
),
array(
'?bar=2',
'http://localhost?foo=1',
'http://localhost?bar=2',
),
array(
'foo',
'http://login.foo.com/bar/baz?/query/string',
'http://login.foo.com/bar/foo',
),
array(
'.',
'http://localhost/foo/bar/baz',
'http://localhost/foo/bar/',
),
array(
'./',
'http://localhost/foo/bar/baz',
'http://localhost/foo/bar/',
),
array(
'./foo',
'http://localhost/foo/bar/baz',
'http://localhost/foo/bar/foo',
),
array(
'..',
'http://localhost/foo/bar/baz',
'http://localhost/foo/',
),
array(
'../',
'http://localhost/foo/bar/baz',
'http://localhost/foo/',
),
array(
'../foo',
'http://localhost/foo/bar/baz',
'http://localhost/foo/foo',
),
array(
'../..',
'http://localhost/foo/bar/baz',
'http://localhost/',
),
array(
'../../',
'http://localhost/foo/bar/baz',
'http://localhost/',
),
array(
'../../foo',
'http://localhost/foo/bar/baz',
'http://localhost/foo',
),
array(
'../../foo',
'http://localhost/bar/foo/',
'http://localhost/foo',
),
array(
'../bar/../../foo',
'http://localhost/bar/foo/',
'http://localhost/foo',
),
array(
'../bar/./../../foo',
'http://localhost/bar/foo/',
'http://localhost/foo',
),
array(
'../../',
'http://localhost/',
'http://localhost/',
),
array(
'../../',
'http://localhost',
'http://localhost/',
),
array(
'/foo',
'http://localhost?bar=1',
'http://localhost/foo',
),
array(
'/foo',
'http://localhost#bar',
'http://localhost/foo',
),
array(
'/foo',
'file:///',
'file:///foo',
),
array(
'/foo',
'file:///bar/baz',
'file:///foo',
),
array(
'foo',
'file:///',
'file:///foo',
),
array(
'foo',
'file:///bar/baz',
'file:///bar/foo',
),
);
}