X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Finfo002.phpt;h=3c71be58fe9899261141a3e17302134478964a42;hp=72690e472ba290db865fa54e4e8cb5cdc995daa7;hb=85cce2121de3ab8993ee35c1f8d8b8f7c696fd3d;hpb=95c6c900d04096d332c422e3f597186b7184c5ab diff --git a/tests/info002.phpt b/tests/info002.phpt index 72690e4..3c71be5 100644 --- a/tests/info002.phpt +++ b/tests/info002.phpt @@ -9,7 +9,7 @@ include "skipif.inc"; echo "Test\n"; -function trap(callable $cb) { +function trap($cb) { try { $cb(); } catch (Exception $e) { @@ -32,13 +32,13 @@ echo new http\Message("CONNECT www.example.org:80 HTTP/1.1"); ===DONE=== --EXPECTF-- Test -exception 'http\Exception\BadMessageException' with message 'http\Message::__construct(): Failed to parse headers: unexpected character '\057' at pos 4 of 'HTTP/1.1 99 Apples in my Basket'' in %sinfo002.php:%d +http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\057' at pos 4 of 'HTTP/1.1 99 Apples in my Basket' in %sinfo002.php:%d Stack trace: #0 %sinfo002.php(%d): http\Message->__construct('HTTP/1.1 99 App...') #1 %sinfo002.php(%d): {closure}() #2 %sinfo002.php(%d): trap(Object(Closure)) #3 {main} -exception 'http\Exception\BadMessageException' with message 'http\Message::__construct(): Failed to parse headers: unexpected character '\040' at pos 7 of 'CONNECT HTTP/1.1'' in %sinfo002.php:%d +http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\040' at pos 7 of 'CONNECT HTTP/1.1' in %sinfo002.php:%d Stack trace: #0 %sinfo002.php(%d): http\Message->__construct('CONNECT HTTP/1....') #1 %sinfo002.php(%d): {closure}()