Skip to content

Commit a4451b4

Browse files
committed
[DomCrawler] Added tests for links starting with ?foo
1 parent da04075 commit a4451b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Symfony/Tests/Component/DomCrawler/LinkTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public function getGetUriTests()
8888
array('?a=b', 'http://localhost/bar/', 'http://localhost/bar/?a=b'),
8989

9090
array('http://login.foo.com/foo', 'http://localhost/bar/', 'http://login.foo.com/foo'),
91+
92+
array('?foo=2', 'http://localhost?foo=1', 'http://localhost?foo=2'),
93+
array('?foo=2', 'http://localhost/?foo=1', 'http://localhost/?foo=2'),
94+
array('?foo=2', 'http://localhost/bar?foo=1', 'http://localhost/bar?foo=2'),
95+
array('?foo=2', 'http://localhost/bar/?foo=1', 'http://localhost/bar/?foo=2'),
9196
);
9297
}
9398
}

0 commit comments

Comments
 (0)