1HTML::FormHandler::TestU(s3e)r Contributed Perl DocumentaHtTiMoLn::FormHandler::Test(3)
2
3
4

NAME

6       HTML::FormHandler::Test - provides is_html method used in tests
7

VERSION

9       version 0.40068
10

SYNOPSIS

12       Simple 'is_html' method for testing form rendering against an expected
13       value without having to fuss with exactly matching newlines and spaces.
14       Uses HTML::TreeBuilder, which uses HTML::Parser.
15
16       See numerous examples in the 't/render' directory.
17
18          use Test::More;
19          use HTML::FormHandler::Test;
20          use_ok('MyApp::Form::Basic');
21          my $form = MyApp::Form::Basic->new;
22          $form->process;
23          my $expected = '<form html>';
24          is_html( $form->render, $expected, 'form renders ok' );
25

AUTHOR

27       FormHandler Contributors - see HTML::FormHandler
28
30       This software is copyright (c) 2017 by Gerda Shank.
31
32       This is free software; you can redistribute it and/or modify it under
33       the same terms as the Perl 5 programming language system itself.
34
35
36
37perl v5.32.0                      2020-07-28        HTML::FormHandler::Test(3)
Impressum