Subject: | t/ebug_http.t fails 10 tests |
It seems that the versions of PPI currently on CPAN (0.996 -> 1.002) have had an API change, so all tests 3-10 fail:
# perl t/ebug_http.t
1..13
[Sun Jul 17 16:22:11 2005] [catalyst] [error] Caught exception "API CHANGE: Source code should only be passed to PPI::Document->new as a SCALAR reference at /Library/Perl/5.8.6/PPI/Document.pm line 126, <GEN1> line 5."
ok 1
ok 2
not ok 3 ...
This patch fixes the problem:
# diff -U1 lib/Devel/ebug/HTTP.pm~ lib/Devel/ebug/HTTP.pm
--- lib/Devel/ebug/HTTP.pm~ 2005-05-16 14:03:50.000000000 -0400
+++ lib/Devel/ebug/HTTP.pm 2005-07-17 16:08:22.000000000 -0400
@@ -219,3 +219,3 @@
my $code = join "\n", $ebug->codelines;
- my $document = PPI::Document->new($code);
+ my $document = PPI::Document->new(\$code);
my $highlight = PPI::HTML->new(line_numbers => 1);