[DomCrawler] added support for query string with slash

Link\getUri() failed to return correct uri when current query string contains slash
This commit is contained in:
Nicolas Roudaire 2013-03-20 09:46:19 +01:00
parent 46341e171a
commit e6b75153e3

View File

@ -102,6 +102,8 @@ class LinkTest extends \PHPUnit_Framework_TestCase
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'),