Subject: | Test::Builder requires a plan |
Test-WWW-Mechanize-1.02
perl v5.8.6
CYGWIN_NT-5.1
The wrong output is on the call to title_is, or presumably any of the functions of Test-WWW-Mechanize that use $Test
[output]
You tried to run a test without a plan! Gotta have a plan. at /usr/lib/perl5/site_perl/5.8/Test/LongString.pm line 130
# Looks like your test died before it could output anything.
[/output]
[code]
my $mech = Test::WWW::Mechanize->new();
$mech->get("www.yahoo.com");
$mech->title_is("Yahoo!");
[/code]
[fix]
please add $Test->no_plan(); as a new line after line 45.
Test::Builder version 0.17 requires a plan to work, this goes back to the old behavior.
[/fix]
[patch]
--- /usr/lib/perl5/site_perl/5.8/Test/WWW/Mechanize.pm 2005-01-27 08:52:06.6561
55000 -0500
+++ /usr/lib/perl5/site_perl/5.8/Test/WWW/Mechanize.pm~ 2005-01-27 08:52:33.5602
94500 -0500
@@ -43,6 +43,7 @@
use base 'WWW::Mechanize';
my $Test = Test::Builder->new();
+$Test->no_plan();
=head1 CONSTRUCTOR
[/patch]