1use strict; 2use warnings; 3 4use Test::More tests => 2; 5 6use HTML::FormFu; 7 8my $form = HTML::FormFu->new( 9 { tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } } ); 10 11my $field = $form->element('Reset')->name('foo'); 12 13my $field_xhtml = qq{<div> 14<input name="foo" type="reset" /> 15</div>}; 16 17is( "$field", $field_xhtml, 'stringified field' ); 18 19my $form_xhtml = <<EOF; 20<form action="" method="post"> 21$field_xhtml 22</form> 23EOF 24 25is( "$form", $form_xhtml, 'stringified form' ); 26 27