5 use lib "$FindBin::Bin/lib";
6 use Test::More tests => 6;
9 ok($foo = MyTest->new());
14 ok(@plugins = sort $foo->booga(nork => 'fark'));
15 is(ref $plugins[0],'MyTest::Extend::Plugin::Bar');
16 is($plugins[0]->nork,'fark');
20 eval { @plugins = $foo->wooga( nork => 'fark') };
22 is(scalar(@plugins),0);
26 use File::Spec::Functions qw(catdir);
29 use lib "$FindBin::Bin/lib";
30 use Module::Pluggable (search_path => ["MyTest::Extend::Plugin"], sub_name => 'booga', instantiate => 'new');
31 use Module::Pluggable (search_path => ["MyTest::Extend::Plugin"], sub_name => 'wooga', instantiate => 'nosomuchmethod');
36 return bless {}, $class;