X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F07xforms.t;h=382cead25045305a1d1028274ff47986fc85fbf2;hb=712c90b5d9054b2942f571bd24fc7398b42a9e4a;hp=cf4ad9b2b401f645f35f5e56f2a902b7ca8a1eb2;hpb=b1da105b9d28650479fadf26cb8dcaaa884f46e2;p=catagits%2FHTTP-Body.git diff --git a/t/07xforms.t b/t/07xforms.t index cf4ad9b..382cead 100644 --- a/t/07xforms.t +++ b/t/07xforms.t @@ -3,21 +3,24 @@ use strict; use warnings; +use FindBin; +use lib "$FindBin::Bin/lib"; + use Test::More tests => 12; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; -use YAML; +use PAML; my $path = catdir( getcwd(), 't', 'data', 'xforms' ); for ( my $i = 1; $i <= 2; $i++ ) { my $test = sprintf( "%.3d", $i ); - my $headers = YAML::LoadFile( catfile( $path, "$test-headers.yml" ) ); - my $results = YAML::LoadFile( catfile( $path, "$test-results.yml" ) ); + my $headers = PAML::LoadFile( catfile( $path, "$test-headers.pml" ) ); + my $results = PAML::LoadFile( catfile( $path, "$test-results.pml" ) ); my $content = IO::File->new( catfile( $path, "$test-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} );