X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fenvresponse015.phpt;fp=tests%2Fenvresponse015.phpt;h=abad2bb095c36b5e4be4ff04cb40cdf2466843b2;hp=0000000000000000000000000000000000000000;hb=4b123a5347d0f16003feb045a5304bbb91630d74;hpb=9b849ab80754093c442139fb7037da9ec1aa3d90 diff --git a/tests/envresponse015.phpt b/tests/envresponse015.phpt new file mode 100644 index 0000000..abad2bb --- /dev/null +++ b/tests/envresponse015.phpt @@ -0,0 +1,36 @@ +--TEST-- +env response send replaced body using multiple ob_start +--SKIPIF-- + +--FILE-- +getBody(); +$r->setBody(new http\Message\Body); + +ob_start($r); +echo "foo: $b\n"; +ob_end_flush(); + +$f = fopen("php://memory", "r+"); + +$r->send($f); + +fseek($f, 0, SEEK_SET); +echo stream_get_contents($f); + +?> +--EXPECT-- +HTTP/1.1 200 OK +Accept-Ranges: bytes +ETag: "fc8305a1" + +foo: bar