This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
patch@32274 t/op/taint.t not cleaning up properly on VMS.
[perl5.git] / t / Module_Pluggable / 08nothing.t
CommitLineData
3f7169a2
RGS
1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 2;
7
8
9my $foo;
10ok($foo = MyTest->new());
11
12my @expected = ();
13my @plugins = sort $foo->plugins;
14is_deeply(\@plugins, \@expected);
15
16
17package MyTest;
18use File::Spec::Functions qw(catdir);
19use strict;
20use Module::Pluggable (search_path => ["No::Such::Modules"]);
21use base qw(Module::Pluggable);
22
23
24sub new {
25 my $class = shift;
26 return bless {}, $class;
27
28}
291;
30