X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequest_007.phpt;h=8989de1b8699fda8d4aba79d4d894d24d908b896;hp=96160af3db1cb89d2cf16c5754b08f4b41094274;hb=d7ce6cca59bb57636f075048fc3ff48038c3e45e;hpb=d650022122969644c33bd03a552af1a631429e16 diff --git a/tests/HttpRequest_007.phpt b/tests/HttpRequest_007.phpt index 96160af..8989de1 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,20 +18,19 @@ var_dump($r->getHistory()->toString(true)); echo "Done\n"; ?> --EXPECTF-- -%sTEST -string(%d) "HTTP/1.1 200 OK -Date: %s -Server: Apache/%s -X-Powered-By: PHP/5%s -Vary: Accept-Encoding -Content-Type: text/html -X-Original-Transfer-Encoding: chunked -Content-Length: 281 +%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: %d +Expect: 100-continue recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -41,18 +40,18 @@ echo "Done\n"; ?> HTTP/1.1 100 Continue -PUT /.print_put.php5 HTTP/1.1 -User-Agent: PECL::HTTP/%s -Host: dev.iworks.at -Accept: */* -Content-Type: text/plain -Content-Length: 281 -Expect: 100-continue +HTTP/1.1 200 OK +Date: %a +Server: %a +Vary: Accept-Encoding +Content-Type: text/html +X-Original-Transfer-Encoding: chunked +Content-Length: %d recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -63,4 +62,3 @@ echo "Done\n"; " Done -