X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fdeprecated%2F06response.t;fp=t%2Fdeprecated%2F06response.t;h=0000000000000000000000000000000000000000;hb=b332ee65fb155a11c72da7544e44ee632c6f577d;hp=f3f98916aa300d328006e07ad728f4afcaa3457c;hpb=d61872c8fd0b2f3990f0f91f8fd65e61f20eff8a;p=catagits%2FHTTP-Request-AsCGI.git diff --git a/t/deprecated/06response.t b/t/deprecated/06response.t deleted file mode 100644 index f3f9891..0000000 --- a/t/deprecated/06response.t +++ /dev/null @@ -1,39 +0,0 @@ -#!perl - -use Test::More tests => 9; - -use strict; -use warnings; - -use IO::File; -use HTTP::Request; -use HTTP::Request::AsCGI; - -my $response; - -{ - my $r = HTTP::Request->new( GET => 'http://www.host.com/' ); - my $c = HTTP::Request::AsCGI->new($r); - - $c->setup; - - print "Content-Type: text/plain\n"; - print "Status: 200 Yay\n"; - print "Date: Thu, 19 Jan 2006 14:08:18 GMT\n"; - print "X-Field: 1\n"; - print "X-Field: 2\n"; - print "\n"; - print "Hello!"; - - $response = $c->restore->response; -} - -isa_ok( $response, 'HTTP::Response' ); -is( $response->code, 200, 'Response Code' ); -is( $response->message, 'Yay', 'Response Message' ); -is( $response->protocol, 'HTTP/1.1', 'Response Protocol' ); -is( $response->content, 'Hello!', 'Response Content' ); -is( $response->content_length, 6, 'Response Content-Length' ); -is( $response->content_type, 'text/plain', 'Response Content-Type' ); -is( $response->header('Date'), 'Thu, 19 Jan 2006 14:08:18 GMT', 'Response Date' ); -is_deeply( [ $response->header('X-Field') ], [ 1, 2 ], 'Response Header X-Field' );