monitor/vendor/textalk/websocket/tests/scripts/client.connect-invalid-upgrade.json

49 lines
967 B
JSON
Raw Normal View History

2024-11-10 21:16:01 +08:00
[
{
"function": "stream_context_create",
"params": [],
"return": "@mock-stream-context"
},
{
"function": "stream_socket_client",
"params": [
"tcp:\/\/localhost:8000",
null,
null,
5,
4,
"@mock-stream-context"
],
"return": "@mock-stream"
},
{
"function": "get_resource_type",
"params": [
"@mock-stream"
],
"return": "stream"
},
{
"function": "stream_set_timeout",
"params": [
"@mock-stream",
5
],
"return": true
},
{
"function": "fwrite",
"params": [
"@mock-stream"
],
"return": 199
},
{
"function": "fgets",
"params": [
"@mock-stream",
1024
],
"return": "Invalid upgrade response\r\n\r\n"
}
]