X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fversion001.phpt;h=52acba6242143d25734016cf42d548adec612de1;hp=513875da8ff39a452fdb21b522433c7a3268507c;hb=cd2f5afaff5794214ec3a784d48b9afce41764bf;hpb=4ebb73feef38aea0560abf7c3a9435dda4d77820 diff --git a/tests/version001.phpt b/tests/version001.phpt index 513875d..52acba6 100644 --- a/tests/version001.phpt +++ b/tests/version001.phpt @@ -6,12 +6,16 @@ include "skipif.inc"; ?> --FILE-- setHttpVersion("1-1"); -$m->setHttpVersion("one.one"); +try { + $m->setHttpVersion("1-1"); + $m->setHttpVersion("one.one"); +} catch (http\Exception $e) { + echo $e->getMessage(),"\n"; +} ?> --EXPECTF-- Notice: http\Message::setHttpVersion(): Non-standard version separator '-' in HTTP protocol version '1-1' in %s - -Warning: http\Message::setHttpVersion(): Could not parse HTTP protocol version 'one.one' in %s +http\Message::setHttpVersion(): Could not parse HTTP protocol version 'one.one'