5 use lib "$FindBin::Bin/lib";
6 use Test::More tests => 5;
9 ok($foo = MyTest->new());
12 my @expected = qw(MyTest::Plugin::Bar MyTest::Plugin::Foo MyTest::Plugin::Quux::Foo);
13 ok(@plugins = sort $foo->plugins);
14 is_deeply(\@plugins, \@expected);
18 ok(@plugins = sort MyTest->plugins);
19 is_deeply(\@plugins, \@expected);
25 sub new { return bless {}, $_[0] }
29 use Module::Pluggable ( package => "MyTest" );
30 sub new { return bless {}, $_[0] }