X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fversion001.phpt;h=52acba6242143d25734016cf42d548adec612de1;hp=513875da8ff39a452fdb21b522433c7a3268507c;hb=c99ab92f90d1497e299f0c94ab3877e5612df27d;hpb=6f61c56b9d16c4fd68e388e629cc5a9248fe8281 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'