public function testFormPrepareAttributes() { $this->specify("Attributes are not prepared properly", function () { $element1 = new Text("name"); $element1->setLabel('name'); expect($element1->prepareAttributes())->equals(['name']); }); }