use warnings tester with fewer dependencies, issues
[gitmo/MooseX-Getopt.git] / t / 011_process_argv.t
index 2a7baf3..fdd8136 100644 (file)
@@ -1,9 +1,9 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
-use Test::More tests => 6;
+use Test::More tests => 7;
 use Test::Fatal 0.003;
-use Test::Requires 'Test::Deep';
+use Test::Warnings;
 
 {
     package Testing::Foo;
@@ -36,17 +36,17 @@ is(
 );
 isa_ok($pa, 'MooseX::Getopt::ProcessedArgv');
 
-Test::Deep::cmp_deeply($pa->argv_copy, [
+is_deeply($pa->argv_copy, [
     '--bar',
     '10',
     'file.dat'
 ], 'argv_copy');
-Test::Deep::cmp_deeply($pa->cli_params, {
+is_deeply($pa->cli_params, {
     'bar' => 10
 }, 'cli_params');
-Test::Deep::cmp_deeply($pa->constructor_params, {
+is_deeply($pa->constructor_params, {
     'baz' => 100
 }, 'constructor_params');
-Test::Deep::cmp_deeply($pa->extra_argv, [
+is_deeply($pa->extra_argv, [
     'file.dat'
 ], 'extra_argv');