From e6b75153e31548f2059e0604547efca0c7e29478 Mon Sep 17 00:00:00 2001 From: Nicolas Roudaire Date: Wed, 20 Mar 2013 09:46:19 +0100 Subject: [PATCH] [DomCrawler] added support for query string with slash Link\getUri() failed to return correct uri when current query string contains slash --- src/Symfony/Component/DomCrawler/Tests/LinkTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/DomCrawler/Tests/LinkTest.php b/src/Symfony/Component/DomCrawler/Tests/LinkTest.php index 4c88f22257..c1d6268a12 100644 --- a/src/Symfony/Component/DomCrawler/Tests/LinkTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/LinkTest.php @@ -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'),