X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient026.phpt;fp=tests%2Fclient026.phpt;h=1bafdc1b154d1d08a663e1856135b2e83e2f78ae;hp=0000000000000000000000000000000000000000;hb=e867316f1364f589eec67cc684703c874984430b;hpb=baff99d75b56868714f7f2ed1972b3baceb72014 diff --git a/tests/client026.phpt b/tests/client026.phpt new file mode 100644 index 0000000..1bafdc1 --- /dev/null +++ b/tests/client026.phpt @@ -0,0 +1,44 @@ +--TEST-- +client stream 128M +--SKIPIF-- + +--FILE-- +setContentType("application/octet-stream"); + for ($i = 0, $data = str_repeat("a",1024); $i < 128*1024; ++$i) { + $request->getBody()->append($data); + } + $request->setOptions(array("timeout" => 10, "expect_100_timeout" => 0)); + $client->enqueue($request); + $client->send(); + var_dump($client->getResponse()->getHeaders()); +}); + +?> +===DONE=== +--EXPECTF-- +Test +array(5) { + ["Accept-Ranges"]=> + string(5) "bytes" + ["Etag"]=> + string(%d) "%s" + ["Last-Modified"]=> + string(%d) "%s" + ["X-Original-Transfer-Encoding"]=> + string(7) "chunked" + ["Content-Length"]=> + int(134217%d%d%d) +} +===DONE===