public function setUp() { $fs = new Fieldset('test', ['type' => "text"]); $fs->setAttribute('class', 'myclass1 myclass2'); $fs->setName('myField'); $target = new Form(); $target->add($fs); $this->target = $target; }