Skip to content

Commit 99c345c

Browse files
committed
Fixed test case to include version being returned as part of the parser results
1 parent 9308a0e commit 99c345c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/999-uv_http_parser.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ uv_http_parser_execute($parser, $buffer, $result);
5353
var_dump($result);
5454
--EXPECT--
5555
# Headers count
56-
9
56+
10
5757
# Headers values
5858
chobie.net
5959
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0
@@ -80,7 +80,7 @@ array(5) {
8080
["UPGRADE"]=>
8181
int(1)
8282
["HEADERS"]=>
83-
array(5) {
83+
array(6) {
8484
["UPGRADE"]=>
8585
string(9) "WebSocket"
8686
["CONNECTION"]=>
@@ -91,5 +91,7 @@ array(5) {
9191
string(18) "http://example.com"
9292
["WEBSOCKET_PROTOCOL"]=>
9393
string(6) "sample"
94+
["VERSION"]=>
95+
string(3) "1.1"
9496
}
9597
}

0 commit comments

Comments
 (0)