X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2Fapache_mvc.t;h=e6a110047b69b79d1b519c3960d406955c9c0544;hb=695634a55e7a5293c9b5197d9d6b93245ff3ff14;hp=4bb718571676329d9de13ba29daff59a54cc1707;hpb=b65ee86d592a4038c2bd7f354a29894145758893;p=maypole.git diff --git a/t/apache_mvc.t b/t/apache_mvc.t index 4bb7185..e6a1100 100644 --- a/t/apache_mvc.t +++ b/t/apache_mvc.t @@ -1,10 +1,17 @@ #!/usr/bin/perl -w use strict; -use Test::More tests => 10; -use Test::MockObject; +use Test::More; +BEGIN { + if (eval { require Apache::Request }) { + plan tests => 3; + } else { + Test::More->import(skip_all =>"Apache::Request is not installed: $@"); + } +} require_ok('Apache::MVC'); ok($Apache::MVC::VERSION, 'defines $VERSION'); +ok(Apache::MVC->can('ar'), 'defines an "ar" accessor'); # defines $VERSION # uses mod_perl # @ISA = 'Maypole'