use warnings tester with fewer dependencies, issues
[gitmo/MooseX-Getopt.git] / t / 109_help_flag.t
index fd54ea9..15b6ac1 100644 (file)
 
 # Update: since 0.41, usage info is printed to stdout, not stderr.
 
-use strict; use warnings;
-use Test::More tests => 22;
+use strict;
+use warnings FATAL => 'all';
+use Test::More tests => 23;
+use Test::Warnings;
 use Test::Trap;
 
 {
     package MyClass;
-    use strict; use warnings;
+    use strict; use warnings FATAL => 'all';
     use Moose;
     with 'MooseX::Getopt';
 }