X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04multipart.t;h=b64b8bbeb2e794b13c34098dd9263dd05c85f8bf;hb=e7753abd4c59d1a4d8df8f55f8d98398eb960c96;hp=bce0f8530dd438b2def151b4288f20096b396e24;hpb=b1da105b9d28650479fadf26cb8dcaaa884f46e2;p=catagits%2FHTTP-Body.git diff --git a/t/04multipart.t b/t/04multipart.t index bce0f85..b64b8bb 100644 --- a/t/04multipart.t +++ b/t/04multipart.t @@ -3,6 +3,9 @@ use strict; use warnings; +use FindBin; +use lib "$FindBin::Bin/lib"; + use Test::More tests => 140; use Test::Deep; @@ -10,7 +13,7 @@ use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; -use YAML; +use PAML; use File::Temp qw/ tempdir /; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); @@ -18,8 +21,8 @@ my $path = catdir( getcwd(), 't', 'data', 'multipart' ); for ( my $i = 1; $i <= 13; $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'} ); my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() );