Change 32997 missed one conditionally unused argument.
[p5sagit/p5-mst-13.2.git] / t / Module_Pluggable / 14package.t
CommitLineData
3f7169a2 1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 5;
7
8my $foo;
9ok($foo = MyTest->new());
10
11my @plugins;
12my @expected = qw(MyTest::Plugin::Bar MyTest::Plugin::Foo MyTest::Plugin::Quux::Foo);
13ok(@plugins = sort $foo->plugins);
14is_deeply(\@plugins, \@expected);
15
16@plugins = ();
17
18ok(@plugins = sort MyTest->plugins);
19is_deeply(\@plugins, \@expected);
20
21
22
23package MyTest;
24use strict;
25sub new { return bless {}, $_[0] }
26
27package MyOtherTest;
28use strict;
29use Module::Pluggable ( package => "MyTest" );
30sub new { return bless {}, $_[0] }
31
32
331;
34