From: Michael Wallner Date: Thu, 12 Feb 2015 22:09:35 +0000 (+0100) Subject: add test X-Git-Tag: RELEASE_2_3_0_RC1~33 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=55cd3786a42cab5979e8559991fa816af485dbe0;p=m6w6%2Fext-http add test --- diff --git a/tests/client025.phpt b/tests/client025.phpt new file mode 100644 index 0000000..7b7a605 --- /dev/null +++ b/tests/client025.phpt @@ -0,0 +1,41 @@ +--TEST-- +client seek +--SKIPIF-- + +--FILE-- +setOptions(["resume" => 1, "expect_100_timeout" => 0]); + $request->getBody()->append("123"); + echo $client->enqueue($request)->send()->getResponse(); +}); + +?> +===DONE=== +--EXPECTF-- +Test +HTTP/1.1 200 OK +Accept-Ranges: bytes +Etag: "%x" +X-Original-Transfer-Encoding: chunked +Content-Length: %d + +PUT / HTTP/1.1 +User-Agent: %s +Host: localhost:%d +Accept: */* +Content-Length: 2 +Expect: 100-continue +X-Original-Content-Length: 3 +X-Original-Content-Range: bytes 1-2/3 + +23===DONE===