--TEST-- HttpMessage --SKIPIF-- --FILE-- getBody()); var_dump($m->toString(true)); var_dump(HttpMessage::fromString($m->toString(true))->toString(true)); ?> --EXPECTF-- %sTEST string(1) "X" string(134) "HTTP/1.1 301 Location: /anywhere HTTP/1.1 302 Location: /somwhere HTTP/1.1 206 Content-Range: bytes=2-3 Content-Length: 1 X " string(134) "HTTP/1.1 301 Location: /anywhere HTTP/1.1 302 Location: /somwhere HTTP/1.1 206 Content-Range: bytes=2-3 Content-Length: 1 X "