function testGetName_ReturnNameAttribute() { $widget = new lmbMacroFormElementWidget('testGetName_ReturnNameAttribute'); $widget->setAttribute('name', 'My_Super_Field'); $this->assertEqual($widget->getName(), 'My_Super_Field'); }
function getName() { $name = parent::getName(); return str_replace('[]', '', $name); }