5 use lib "$FindBin::Bin/lib";
6 use Test::More tests => 3;
9 ok($foo = MyTest->new());
12 my @expected = qw(MyTest::Extend::Plugin::Bar MyTest::Plugin::Bar MyTest::Plugin::Foo MyTest::Plugin::Quux::Foo);
14 push @plugins, $foo->plugins;
15 push @plugins, $foo->foo;
17 @plugins = sort @plugins;
18 is_deeply(\@plugins, \@expected);
22 push @plugins, MyTest->plugins;
23 push @plugins, MyTest->foo;
24 @plugins = sort @plugins;
25 is_deeply(\@plugins, \@expected);
32 use Module::Pluggable;
33 use Module::Pluggable ( search_path => [ "MyTest::Extend::Plugin" ] , sub_name => 'foo' );
38 return bless {}, $class;