5 use lib (($FindBin::Bin."/lib")=~/^(.*)$/);
6 use Test::More tests => 5;
9 ok($foo = ExtTest->new());
12 my @expected = qw(ExtTest::Plugin::Bar ExtTest::Plugin::Foo ExtTest::Plugin::Quux::Foo);
13 ok(@plugins = sort $foo->plugins);
17 is_deeply(\@plugins, \@expected, "is deeply");
21 ok(@plugins = sort ExtTest->plugins);
26 is_deeply(\@plugins, \@expected, "is deeply class");
33 use Module::Pluggable file_regex => qr/\.plugin$/;
38 return bless {}, $class;