Debian Codegraph @

t/mailform.t

raw symbols SCIP
1 use Test::More tests => 4;
2
3 SKIP: {
4 # Check for Net::SMTP
5 eval { require Net::SMTP; };
6 skip("Net::SMTP is not installed. CGI::Application::Mailform requires Net::SMTP.", 4)
7 if ($@);
8
9 # Can we even use this module?
10 require_ok('CGI::Application::Mailform');
11
12 my $mf = CGI::Application::Mailform->new();
13
14 # Is it a Mailform?
15 isa_ok($mf, 'CGI::Application::Mailform');
16
17 # If it a CGI-App?
18 isa_ok($mf, 'CGI::Application');
19
20 # Did it inherit the run method?
21 can_ok($mf, qw/run/);
22 }