X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_007.phpt;h=067e36c477d702c95645e76e959b43130f8b8d78;hb=bcd8a695c6dfc8463596cf97d886e32eec959417;hp=1f31404af3f6cdccbfbfab3da77d5d76423a3758;hpb=b22d34f60b6694a8fed24cff66a28fd638309928;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_007.phpt b/tests/HttpRequest_007.phpt index 1f31404..067e36c 100644 --- a/tests/HttpRequest_007.phpt +++ b/tests/HttpRequest_007.phpt @@ -9,7 +9,7 @@ checkcls('HttpRequest'); recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -18,19 +18,19 @@ var_dump($r->getHistory()->toString(true)); echo "Done\n"; ?> --EXPECTF-- -%sTEST -string(%d) "PUT /.print_put.php5 HTTP/1.1 -User-Agent: PECL::HTTP/%s +%aTEST +string(%d) "PUT /ext-http/.print_put.php5 HTTP/1.1 +User-Agent: PECL::HTTP/%a Host: dev.iworks.at Accept: */* Content-Type: text/plain -Content-Length: 281 +Content-Length: %d Expect: 100-continue recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -41,18 +41,17 @@ echo "Done\n"; HTTP/1.1 100 Continue HTTP/1.1 200 OK -Date: %s -Server: %s -X-Powered-By: %s +Date: %a +Server: %a +X-Powered-By: %a Vary: Accept-Encoding +Content-Length: %d Content-Type: text/html -X-Original-Transfer-Encoding: chunked -Content-Length: 281 recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__);