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 / 16different_extension.t
CommitLineData
3f7169a2
RGS
1#!perl -w
2
3use strict;
4use FindBin;
5use lib "$FindBin::Bin/lib";
6use Test::More tests => 5;
7
8my $foo;
9ok($foo = ExtTest->new());
10
11my @plugins;
12my @expected = qw(ExtTest::Plugin::Bar ExtTest::Plugin::Foo ExtTest::Plugin::Quux::Foo);
13ok(@plugins = sort $foo->plugins);
14
15
16
17is_deeply(\@plugins, \@expected, "is deeply");
18
19@plugins = ();
20
21ok(@plugins = sort ExtTest->plugins);
22
23
24
25
26is_deeply(\@plugins, \@expected, "is deeply class");
27
28
29
30package ExtTest;
31
32use strict;
33use Module::Pluggable file_regex => qr/\.plugin$/;
34
35
36sub new {
37 my $class = shift;
38 return bless {}, $class;
39
40}
411;
42