Adapt perlivp to the ext/ reorganisation for Compress modules
[p5sagit/p5-mst-13.2.git] / t / Module_Pluggable / 03diffname.t
CommitLineData
3f7169a2 1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 3;
7
8my $foo;
9ok($foo = MyTest->new());
10
11my @plugins;
12my @expected = qw(MyTest::Plugin::Bar MyTest::Plugin::Foo MyTest::Plugin::Quux::Foo);
13ok(@plugins = sort $foo->foo);
14is_deeply(\@plugins, \@expected);
15
16
17
18package MyTest;
19
20use strict;
21use Module::Pluggable ( sub_name => 'foo');
22
23
24sub new {
25 my $class = shift;
26 return bless {}, $class;
27
28}
291;
30