aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-05-31 12:48:17 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-31 16:53:07 +0100
commit1bb94cd0bf0821927b3f449d832a9982b0397fa9 (patch)
tree2b8be8ab1202b7299a2877c6ea2732a9e6fe611e /perllib
parent03d2376e59e69b2e18cbd8cf98f7956393a4fd5b (diff)
Auto-add strict/warnings/Test::More with TestMech.
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;