X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpMessage_001.phpt;h=00e0e4b663f230023358d0f656f0318f601e18d0;hp=d7e7ba9dd347f4f8e01a2fd5f3ef29544045ebc7;hb=687fcc79f03b9915884223259b4dc64196d7edf6;hpb=3739156e5901eb81df2bd844abf301e08cd52405 diff --git a/tests/HttpMessage_001.phpt b/tests/HttpMessage_001.phpt index d7e7ba9..00e0e4b 100644 --- a/tests/HttpMessage_001.phpt +++ b/tests/HttpMessage_001.phpt @@ -1,12 +1,13 @@ --TEST-- -HttpMessage simple redirects +HttpMessage --SKIPIF-- - (int) PHP_VERSION) and die('skip PHP5 is required for Http classes'); +checkver(5); ?> --FILE-- getBody()); -var_dump($m->toString()); -var_dump(HttpMessage::fromString($m->toString())->toString()); +var_dump($m->toString(true)); +var_dump(HttpMessage::fromString($m->toString(true))->toString(true)); ?> --EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - +%sTEST string(1) "X" string(134) "HTTP/1.1 301 Location: /anywhere @@ -50,3 +49,4 @@ Content-Length: 1 X " +