From 99c345c51d25c8440935bdfdccd7037207f8f1c5 Mon Sep 17 00:00:00 2001 From: Tjerk Meesters Date: Thu, 21 Aug 2014 17:58:13 +0800 Subject: [PATCH] Fixed test case to include version being returned as part of the parser results --- tests/999-uv_http_parser.phpt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/999-uv_http_parser.phpt b/tests/999-uv_http_parser.phpt index ba1c658..5e6dab6 100644 --- a/tests/999-uv_http_parser.phpt +++ b/tests/999-uv_http_parser.phpt @@ -53,7 +53,7 @@ uv_http_parser_execute($parser, $buffer, $result); var_dump($result); --EXPECT-- # Headers count -9 +10 # Headers values chobie.net Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0 @@ -80,7 +80,7 @@ array(5) { ["UPGRADE"]=> int(1) ["HEADERS"]=> - array(5) { + array(6) { ["UPGRADE"]=> string(9) "WebSocket" ["CONNECTION"]=> @@ -91,5 +91,7 @@ array(5) { string(18) "http://example.com" ["WEBSOCKET_PROTOCOL"]=> string(6) "sample" + ["VERSION"]=> + string(3) "1.1" } }