1use strict;
2use warnings;
3
4use Test::More tests => 1;
5
6use HTML::FormFu;
7
8my $form = HTML::FormFu->new(
9    { tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } } );
10
11$form->auto_fieldset( { nested_name => 'nested' } );
12
13my $multi = $form->element('Multi');
14
15$multi->element('Text')->name('foo');
16
17my $form_xhtml = <<EOF;
18<form action="" method="post">
19<fieldset>
20<div>
21<span class="elements">
22<input name="nested.foo" type="text" />
23</span>
24</div>
25</fieldset>
26</form>
27EOF
28
29is( "$form", $form_xhtml, 'stringified form' );
30
31