Test::FormValidatorTest::FormValidator is a test framework for Data::FormValidator profiles. | |
Download |
Test::FormValidator Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Michael Graham
- Publisher web site:
- http://search.cpan.org/~mgraham/
Test::FormValidator Tags
Test::FormValidator Description
Test::FormValidator is a test framework for Data::FormValidator profiles. Test::FormValidator is a test framework for Data::FormValidator profiles.SYNOPSIS use Test::FormValidator 'no_plan'; my $tfv = Test::FormValidator->new; $tfv->profile(WebApp->_change_password_profile); # check that the profile detects missing retyped password $tfv->check( 'email' => 'someone-at-example.com', 'old_pass' => 'seekrit', 'new_pass1' => 'foo', ); $tfv->missing_ok(, "caught missing retyped password"); # and that it detects missing fields $tfv->check( 'email' => 'someone-at-example.com', 'old_pass' => 'seekrit', 'new_pass1' => 'foo', 'new_pass2' => 'bar', ); $tfv->invalid_ok(, "caught bad email & passwd"); Requirements: · Perl
Test::FormValidator Related Software