skip tests unless DBD::SQLite installed
[blog.pm-common-perl-mods.git] / Form-Processor-Field-URI / t / 03.t
blobe8767ae3267edfe60f24cc34b7f8a67f19530792
1 use strict;
2 use warnings;
3 use lib './t';
4 use Test::More tests   => 4;
6 use Form::Processor::Field::URI;
8 my $field = Form::Processor::Field::URI->new(
9     name    => 'test_field',
10     type    => 'uri',
11     form    => undef
14 ok( defined $field,  'new() called' );
16 $field->input( 'foo' );
17 $field->validate_field;
18 ok( $field->has_error );
20 $field->input( 'http://google.com' );
21 $field->validate_field;
22 ok( !$field->has_error );
24 $field->input( 'https://google.com' );
25 $field->validate_field;
26 ok( !$field->has_error );