3 use Test::More tests => 3;
10 use HTTP::Request::AsCGI;
12 my $r = HTTP::Request->new( POST => 'http://www.host.com/');
14 $r->content_length(5);
15 $r->content_type('text/plain');
17 my $c = HTTP::Request::AsCGI->new($r);
18 $c->stderr(IO::File->new_tmpfile);
21 print STDOUT 'STDOUT';
22 print STDERR 'STDERR';
26 is( $c->stdin->getline, 'STDIN', 'STDIN' );
27 is( $c->stdout->getline, 'STDOUT', 'STDOUT' );
28 is( $c->stderr->getline, 'STDERR', 'STDERR' );