X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F107_no_auto_help.t;fp=t%2F107_no_auto_help.t;h=5ff77802e4a41249d6059f99f41677c717fe26c5;hp=f7d615a836156194fa8ecaee4670e97141aa342b;hb=aabf4179f74c8607d8c9de5a1da07a5f2cb48b3b;hpb=d08ef824ff9b41efb8fbbc09fe6af178ef83080b diff --git a/t/107_no_auto_help.t b/t/107_no_auto_help.t index f7d615a..5ff7780 100644 --- a/t/107_no_auto_help.t +++ b/t/107_no_auto_help.t @@ -42,7 +42,7 @@ my $fail_on_exit = 1; } use Test::Warn 0.21; -use Test::Exception; +use Test::Fatal; END { ok(!$fail_on_exit, 'getoptions() lives'); @@ -57,7 +57,7 @@ END { @ARGV = ('--help'); warning_like { - throws_ok { Class->new_with_options } + like exception { Class->new_with_options }, #usage: 107_no_auto_help.t [-?] [long options...] qr/^usage: [\d\w]+\Q.t [-?] [long options...]\E.\s+\Q-? --usage --help Prints this usage information.\E.\s+--configfile/ms, 'usage information looks good';