use strict; use warnings; use Test::More tests => 2; use HTML::FormFu; my $form = HTML::FormFu->new({ tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } }); $form->indicator( sub {1} ); my $field = $form->element('Radiogroup'); $field->name('foo'); $field->values( [qw/ one two /] ); $field->label('My legend'); $field->constraint('Required'); my $xhtml = qq{
}; is( "$field", $xhtml ); # With mocked basic query { $form->process( {} ); my $xhtml = qq{}; is( "$field", $xhtml ); }