9 plan skip_all => "Test::Warn required to test $0" if $@;
14 use_ok( 'WWW::Mechanize' );
17 my $m = WWW::Mechanize->new;
18 isa_ok( $m, 'WWW::Mechanize' );
21 $m->find_link( link_regex => 'foo' );
22 } qr[Unknown link-finding parameter "link_regex".+line \d+], 'Passes message, and includes the line number';
25 $m->find_link( url_regex => 'foo' );
26 } qr[foo passed as url_regex is not a regex.+line \d+], 'Passes message, and includes the line number';