expand #if CURL
[m6w6/ext-http] / tests / message001.phpt
index 8a10811fb1f887e14d5c0bc8022ace14abd0b703..e0eeddda1f4cf13f578d31ee4dfd0af652208b89 100644 (file)
@@ -10,6 +10,11 @@ echo "Test\n";
 
 use http\Message as HttpMessage;
 
+try {
+    echo new HttpMessage(" gosh\n nosh\n ");
+} catch (Exception $ignore) {
+}
+
 $m = new HttpMessage();
 echo $m;
 var_dump(
@@ -85,7 +90,7 @@ echo $m->getParentMessage();
 echo "Done\n";
 --EXPECTF--
 Test
-string(3) "0.0"
+string(3) "1.1"
 bool(true)
 array(0) {
 }
@@ -234,7 +239,6 @@ X-Original-Transfer-Encoding: chunked
 Content-Length: 14
 
 Hello, World!
-
 string(3) "1.1"
 bool(true)
 int(200)