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(['new_pass2'], "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([qw(email new_pass1 new_pass2)], "caught bad email & passwd");
Product's homepage
Requirements:
· Perl