X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fenvresponse004.phpt;fp=tests%2Fenvresponse004.phpt;h=f84c8606aeea76d18921a9fb233db9c99df4584d;hp=0000000000000000000000000000000000000000;hb=87db9817d428282792c8146d9c2ae9748ebf6f1e;hpb=7a5c865f6faf8b1b6c91735e9d3b040449ea74ba diff --git a/tests/envresponse004.phpt b/tests/envresponse004.phpt new file mode 100644 index 0000000..f84c860 --- /dev/null +++ b/tests/envresponse004.phpt @@ -0,0 +1,28 @@ +--TEST-- +env reponse callback +--SKIPIF-- + +--GET-- +dummy=1 +--FILE-- +setCacheControl("public,must-revalidate,max-age=0"); +$r->setThrottleRate(1, 0.1); +ob_start($r); + +echo "foo"; +echo "bar"; + +ob_end_flush(); +$r->send(); +--EXPECTHEADERS-- +Accept-Ranges: bytes +Cache-Control: public,must-revalidate,max-age=0 +ETag: "9ef61f95" +--EXPECTF-- +foobar