CGI::Simple => 0,
Template => 0,
Template::Plugin::Class => 0,
- Test::MockModule => 0,
- Test::MockObject => 0,
+ Test::MockModule => 0,
}, # e.g., Module::Name => 1.1
(
$] >= 5.005
),
);
+sub has_module {
+ my ($module, $version) = @_;
+ (my $file = "$module.pm") =~ s/::/\//g;
+ eval {require $file} or return;
+ return ($module->VERSION || 0) >= $version;
+}
+
if ( !-e "t/beerdb.db" ) {
print "Making SQLite DB\n";
eval { require DBD::SQLite };
#!/usr/bin/perl -w
use strict;
use Test::More tests => 10;
-use Test::MockObject;
require_ok('Apache::MVC');
ok($Apache::MVC::VERSION, 'defines $VERSION');