root/trunk/t/01-dependencies.t

Revision 57, 504 bytes (checked in by clinton, 4 years ago)

Adding Apache::Test style tests harness, tid 10737

Line 
1 # -*-cperl-*-
2 use strict;
3 use warnings;
4 no warnings 'redefine';
5
6 my %modules;
7 BEGIN {
8     # Module name => minimum version
9     %modules = (
10                 'Apache::Test' => '',
11                 'mod_perl2' => '',
12                 'Test::WWW::Mechanize' => '',
13                );
14 }
15
16 use Test::More tests => (scalar keys %modules);
17
18 foreach my $module (keys %modules) {
19     my $version = $modules{$module};
20     if ($version) {
21         use_ok($module, $version);
22     } else {
23         use_ok($module);
24     }
25 }
Note: See TracBrowser for help on using the browser.