public function FormFieldTest::testGetName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/Field/FormFieldTest.php \Symfony\Component\DomCrawler\Tests\Field\FormFieldTest::testGetName()
File
- vendor/
symfony/ dom-crawler/ Tests/ Field/ FormFieldTest.php, line 18
Class
Namespace
Symfony\Component\DomCrawler\Tests\FieldCode
public function testGetName() {
$node = $this
->createNode('input', '', array(
'type' => 'text',
'name' => 'name',
'value' => 'value',
));
$field = new InputFormField($node);
$this
->assertEquals('name', $field
->getName(), '->getName() returns the name of the field');
}