public function testButton() { $form = new HTML_QuickForm2('filters', 'post', null, false); $form->addDataSource(new HTML_QuickForm2_DataSource_Array(array('bar' => 'VALUE'))); $button = $form->addButton('bar', array('type' => 'submit')); $button->addFilter('strtolower'); $this->assertEquals('value', $button->getValue()); }