|
@@ -85,6 +85,7 @@ class LinkTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
array('', 'http://localhost/bar/', 'http://localhost/bar/'),
|
|
|
array('#', 'http://localhost/bar/', 'http://localhost/bar/#'),
|
|
|
+ array('#bar', 'http://localhost/bar/#foo', 'http://localhost/bar/#bar'),
|
|
|
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'),
|
|
@@ -93,6 +94,7 @@ class LinkTest extends \PHPUnit_Framework_TestCase
|
|
|
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'),
|
|
|
);
|
|
|
}
|
|
|
}
|