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'); }