This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Module::CoreList, regenerate META.yml,
[perl5.git] / t / Module_Pluggable / 04acmedir_single.t
CommitLineData
3f7169a2
RGS
1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 3;
7
8
9my $foo;
10ok($foo = MyTest->new());
11
12my @plugins;
13my @expected = qw(Acme::MyTest::Plugin::Foo);
14ok(@plugins = sort $foo->plugins);
15is_deeply(\@plugins, \@expected);
16
17
18package MyTest;
19use File::Spec::Functions qw(catdir);
20use strict;
21use Module::Pluggable search_path => "Acme::MyTest::Plugin", search_dirs => "t/acme" ;
22
23
24sub new {
25 my $class = shift;
26 return bless {}, $class;
27
28}
291;
30