File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Change history for HTML-Form
4
4
- Perl::Tidy-ed the entire codebase (GH#42) (Julien Fiegehenn)
5
5
- Split extra packages inside HTML::Form into their own module files
6
6
and consolidate documentation (GH#43) (Julien Fiegehenn)
7
+ - Added test to check unrecognized options to parse(). (GH#46) (Mohammad S Anwar)
7
8
8
9
6.10 2022-08-22 13:20:12Z
9
10
- Use "croak" instead of "die" to show errors from the perspective of the
Original file line number Diff line number Diff line change
1
+ # !perl
2
+
3
+ use strict;
4
+ use warnings;
5
+
6
+ use Test::More;
7
+ use HTML::Form ();
8
+ use Test::Warnings qw( warning) ;
9
+
10
+ $^W = 1;
11
+ like(
12
+ warning {
13
+ HTML::Form-> parse( q{ } , base => ' http://localhost/' , foo => 1 )
14
+ },
15
+ qr / ^Unrecognized option foo in HTML::Form/ ,
16
+ ' caught invalid option to parse()' ,
17
+ );
18
+
19
+ done_testing;
You can’t perform that action at this time.
0 commit comments