summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/010dependencies.t4
-rw-r--r--t/Support/Templates.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/t/010dependencies.t b/t/010dependencies.t
index d84688a7e..89a26ba5e 100644
--- a/t/010dependencies.t
+++ b/t/010dependencies.t
@@ -27,7 +27,7 @@ use constant MODULE_REGEX => qr/
['"]?
([\w:\.\\]+)
/x;
-use constant BASE_REGEX => qr/^use base qw\(([^\)]+)/;
+use constant BASE_REGEX => qr/^use (?:base|parent) (?:-norequire, )?qw\(([^\)]+)/;
# Extract all Perl modules.
foreach my $file (@Support::Files::testitems) {
@@ -59,7 +59,7 @@ foreach my $module (keys %mods) {
}
elsif ($line =~ BASE_REGEX or $line =~ MODULE_REGEX) {
my $used_string = $1;
- # "use base" can have multiple modules
+ # "use base"/"use parent" can have multiple modules
my @used_array = split(/\s+/, $used_string);
foreach my $used (@used_array) {
next if $used !~ /^Bugzilla/;
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm
index a28ec8759..c9a528e9f 100644
--- a/t/Support/Templates.pm
+++ b/t/Support/Templates.pm
@@ -10,7 +10,7 @@ package Support::Templates;
use strict;
use lib 't';
-use base qw(Exporter);
+use parent qw(Exporter);
@Support::Templates::EXPORT =
qw(@languages @include_paths $english_default_include_path
%include_path @referenced_files %actual_files $num_actual_files);