Commit | Line | Data |
---|---|---|
3f7169a2 | 1 | #!perl -w |
2 | ||
3 | use strict; | |
4 | use FindBin; | |
183ac38d | 5 | use lib (($FindBin::Bin."/lib")=~/^(.*)$/); |
3f7169a2 | 6 | use Test::More tests => 2; |
7 | ||
8 | my $t = MyTest->new(); | |
9 | ||
10 | ||
11 | ok($t->plugins()); | |
12 | ||
13 | ok(keys %{MyTest::Plugin::Foo::}); | |
14 | ||
15 | ||
16 | package MyTest; | |
17 | use File::Spec::Functions qw(catdir); | |
18 | use strict; | |
19 | use Module::Pluggable (require => 1); | |
20 | use base qw(Module::Pluggable); | |
21 | ||
22 | ||
23 | sub new { | |
24 | my $class = shift; | |
25 | return bless {}, $class; | |
26 | ||
27 | } | |
28 | 1; | |
29 |