File: mailform.t

package info (click to toggle)
libcgi-application-perl 4.61-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 708 kB
  • sloc: perl: 1,397; sh: 38; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use Test::More tests => 4;

SKIP: {
	# Check for Net::SMTP
	eval { require Net::SMTP; };
	skip("Net::SMTP is not installed.  CGI::Application::Mailform requires Net::SMTP.", 4)
		if ($@);

	# Can we even use this module?
	require_ok('CGI::Application::Mailform');

	my $mf = CGI::Application::Mailform->new();

	# Is it a Mailform?
	isa_ok($mf, 'CGI::Application::Mailform');

	# If it a CGI-App?
	isa_ok($mf, 'CGI::Application');

	# Did it inherit the run method?
	can_ok($mf, qw/run/);
}