public function FormTest::testGetFormNode 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::testGetFormNode()
File
- vendor/
symfony/ dom-crawler/ Tests/ FormTest.php, line 285
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testGetFormNode() {
$dom = new \DOMDocument();
$dom
->loadHTML('<html><form><input type="submit" /></form></html>');
$form = new Form($dom
->getElementsByTagName('input')
->item(0), 'http://example.com');
$this
->assertSame($dom
->getElementsByTagName('form')
->item(0), $form
->getFormNode(), '->getFormNode() returns the form node associated with this form');
}