This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re-enable the setlocale() tests for Windows XP onwards
[perl5.git] / t / Module_Pluggable / 05postpath.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(MyTest::Extend::Plugin::Bar);
14ok(@plugins = sort $foo->plugins);
15is_deeply(\@plugins, \@expected);
16
17
18
19package MyTest;
20use File::Spec::Functions qw(catdir);
21use strict;
22use Module::Pluggable (search_path => ["MyTest::Extend::Plugin"]);
23
24
25sub new {
26 my $class = shift;
27 return bless {}, $class;
28
29}
301;
31