1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- [
- {
- "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": "stream_get_line",
- "params": [
- "@mock-stream",
- 1024,
- "\r\n\r\n"
- ],
- "return": "Invalid upgrade response"
- }
- ]
|