aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/TestMech.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index 166ba116f..094baab15 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -1,8 +1,16 @@
package FixMyStreet::TestMech;
-use base qw(Test::WWW::Mechanize::Catalyst Test::Builder::Module);
+use parent qw(Test::WWW::Mechanize::Catalyst Test::Builder::Module);
use strict;
-use warnings;
+use warnings FATAL => 'all';
+use utf8;
+
+sub import {
+ strict->import;
+ warnings->import(FATAL => 'all');
+ utf8->import;
+ Test::More->export_to_level(1);
+}
BEGIN {
use FixMyStreet;