public function FormTest::testGetUriWithOnlyQueryString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testGetUriWithOnlyQueryString()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 530
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testGetUriWithOnlyQueryString() {
$form = $this
->createForm('<form action="?get=param"><input type="submit" /></form>', null, 'http://localhost/foo/bar');
$this
->assertEquals('http://localhost/foo/bar?get=param', $form
->getUri(), '->getUri() returns absolute URIs only if the host has been defined in the constructor');
}