Tests: added test for reading body from IO::Handle-like object.

This commit is contained in:
Andrey Zelenkov
2019-01-28 17:16:50 +03:00
parent eced6bc972
commit 7dddfe2143
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
use File::Basename;
use lib dirname (__FILE__);
use IOFake;
my $app = sub {
my ($environ) = @_;
my $io = IOFake->new($environ->{'psgi.errors'});
return ['200', [ 'Content-Length' => '2' ], $io];
};