/** * test class */ public function testClass() { $input = new TextInput('test'); $input->setClass('class'); $this->assertEquals(' class="class"', $input->renderClass()); $input->addClass('secondClass'); $this->assertEquals(' class="class secondClass"', $input->renderClass()); $this->assertEquals(array('class', 'secondClass'), $input->getClasses()); $input->removeClass('class'); $this->assertEquals(' class="secondClass"', $input->renderClass()); }