| 1 | use strictscip-perl cpan FCGI-Client 0.09 strict/; |
| 2 | use warningsscip-perl cpan FCGI-Client 0.09 warnings/; |
| 3 | use Test::Morescip-perl cpan FCGI-Client 0.09 Test/More/; |
| 4 | use libscip-perl cpan FCGI-Client 0.09 lib/ 't/lib/'; |
| 5 | use t::Internalscip-perl cpan FCGI-Client 0.09 t/Internal/; |
| 6 | |
| 7 | my $client = t::Internal->newscip-perl cpan FCGI-Client 0.09 t/Internal/new().(path => 't/fcgi/ruby.rb'); |
| 8 | my ( $stdout, $stderr ) = $client->requestscip-perl cpan FCGI-Client 0.09 t/Internal/request().( |
| 9 | +{ |
| 10 | REQUEST_METHOD => 'GET', |
| 11 | QUERY_STRING => 'foo=bar', |
| 12 | }, |
| 13 | '' |
| 14 | ); |
| 15 | isscip-perl cpan FCGI-Client 0.09 main/is(). $stdout, "Content−type: text/html\r\n\r\nhello\nfoo=bar"; |
| 16 | isscip-perl cpan FCGI-Client 0.09 main/is(). $stderr, "hello, stderr\n"; |
| 17 | |
| 18 | done_testing; |