public function FormTest::testGetUriAbsolute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/FormTest.php \Symfony\Component\DomCrawler\Tests\FormTest::testGetUriAbsolute()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 521
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testGetUriAbsolute() {
$form = $this
->createForm('<form action="foo"><input type="submit" /></form>', null, 'http://localhost/foo/');
$this
->assertEquals('http://localhost/foo/foo', $form
->getUri(), '->getUri() returns absolute URIs');
$form = $this
->createForm('<form action="/foo"><input type="submit" /></form>', null, 'http://localhost/foo/');
$this
->assertEquals('http://localhost/foo', $form
->getUri(), '->getUri() returns absolute URIs');
}