X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F05urlencoded.t;fp=t%2F05urlencoded.t;h=f92a9b6c8afa83af0aba96e4aa17107f3020ffc7;hb=712c90b5d9054b2942f571bd24fc7398b42a9e4a;hp=575a5ac676abac7b7439c2a88ffc3e189d7fd6a5;hpb=b1da105b9d28650479fadf26cb8dcaaa884f46e2;p=catagits%2FHTTP-Body.git diff --git a/t/05urlencoded.t b/t/05urlencoded.t index 575a5ac..f92a9b6 100644 --- a/t/05urlencoded.t +++ b/t/05urlencoded.t @@ -3,6 +3,9 @@ use strict; use warnings; +use FindBin; +use lib "$FindBin::Bin/lib"; + use Test::More tests => 31; use Cwd; @@ -10,15 +13,15 @@ use Digest::MD5 qw(md5_hex); use HTTP::Body; use File::Spec::Functions; use IO::File; -use YAML; +use PAML; my $path = catdir( getcwd(), 't', 'data', 'urlencoded' ); for ( my $i = 1; $i <= 6; $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'} );