Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HTML::FormHandler::TesUser Contributed Perl DocumentHTML::FormHandler::Test(3)

NAME
       HTML::FormHandler::Test - provides is_html method used in tests

VERSION
       version 0.40067

SYNOPSIS
       Simple 'is_html'	method for testing form	rendering against an expected
       value without having to fuss with exactly matching newlines and spaces.
       Uses HTML::TreeBuilder, which uses HTML::Parser.

       See numerous examples in	the 't/render' directory.

	  use Test::More;
	  use HTML::FormHandler::Test;
	  use_ok('MyApp::Form::Basic');
	  my $form = MyApp::Form::Basic->new;
	  $form->process;
	  my $expected = '<form	html>';
	  is_html( $form->render, $expected, 'form renders ok' );

AUTHOR
       FormHandler Contributors	- see HTML::FormHandler

COPYRIGHT AND LICENSE
       This software is	copyright (c) 2016 by Gerda Shank.

       This is free software; you can redistribute it and/or modify it under
       the same	terms as the Perl 5 programming	language system	itself.

perl v5.24.1			  2016-10-19	    HTML::FormHandler::Test(3)

NAME | VERSION | SYNOPSIS | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=HTML::FormHandler::Test&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help