Explorar el Código

[DomCrawler] Added tests for links starting with ?foo

Alexander hace 14 años
padre
commit
a4451b48cb
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      tests/Symfony/Tests/Component/DomCrawler/LinkTest.php

+ 5 - 0
tests/Symfony/Tests/Component/DomCrawler/LinkTest.php

@@ -88,6 +88,11 @@ class LinkTest extends \PHPUnit_Framework_TestCase
             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('?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'),
         );
     }
 }