make all warnings fatal in tests
[gitmo/MooseX-Getopt.git] / t / 107_union_bug.t
index 9f78fb5..653f012 100644 (file)
@@ -1,9 +1,8 @@
-#!/usr/bin/perl
-
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
-use Test::More;
+use Test::More tests => 6;
+use Test::NoWarnings 1.04 ':early';
 
 {
     package example;
@@ -62,5 +61,3 @@ use Test::More;
     is_deeply($example->results, [qw(1234 5678 9012)], 'result as expected');
 }
 
-done_testing;
-