protected function FormFieldTestCase::createNode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Tests/Field/FormFieldTestCase.php \Symfony\Component\DomCrawler\Tests\Field\FormFieldTestCase::createNode()
19 calls to FormFieldTestCase::createNode()
- ChoiceFormFieldTest::testCheckboxes in vendor/
symfony/ dom-crawler/ Tests/ Field/ ChoiceFormFieldTest.php - ChoiceFormFieldTest::testCheckboxWithEmptyBooleanAttribute in vendor/
symfony/ dom-crawler/ Tests/ Field/ ChoiceFormFieldTest.php - ChoiceFormFieldTest::testGetType in vendor/
symfony/ dom-crawler/ Tests/ Field/ ChoiceFormFieldTest.php - ChoiceFormFieldTest::testInitialize in vendor/
symfony/ dom-crawler/ Tests/ Field/ ChoiceFormFieldTest.php - ChoiceFormFieldTest::testIsMultiple in vendor/
symfony/ dom-crawler/ Tests/ Field/ ChoiceFormFieldTest.php
File
- vendor/
symfony/ dom-crawler/ Tests/ Field/ FormFieldTestCase.php, line 16
Class
Namespace
Symfony\Component\DomCrawler\Tests\FieldCode
protected function createNode($tag, $value, $attributes = array()) {
$document = new \DOMDocument();
$node = $document
->createElement($tag, $value);
foreach ($attributes as $name => $value) {
$node
->setAttribute($name, $value);
}
return $node;
}