X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmessage001.phpt;h=e0eeddda1f4cf13f578d31ee4dfd0af652208b89;hb=286fd61cfcf5c44ca5d36c4a1014a31f5c559b94;hp=8a10811fb1f887e14d5c0bc8022ace14abd0b703;hpb=fa54d3dd8c0f101c9f8619d59eaf1940c311e7e5;p=m6w6%2Fext-http diff --git a/tests/message001.phpt b/tests/message001.phpt index 8a10811..e0eeddd 100644 --- a/tests/message001.phpt +++ b/tests/message001.phpt @@ -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)