client.connect-invalid-upgrade.json 993 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [
  2. {
  3. "function": "stream_context_create",
  4. "params": [],
  5. "return": "@mock-stream-context"
  6. },
  7. {
  8. "function": "stream_socket_client",
  9. "params": [
  10. "tcp:\/\/localhost:8000",
  11. null,
  12. null,
  13. 5,
  14. 4,
  15. "@mock-stream-context"
  16. ],
  17. "return": "@mock-stream"
  18. },
  19. {
  20. "function": "get_resource_type",
  21. "params": [
  22. "@mock-stream"
  23. ],
  24. "return": "stream"
  25. },
  26. {
  27. "function": "stream_set_timeout",
  28. "params": [
  29. "@mock-stream",
  30. 5
  31. ],
  32. "return": true
  33. },
  34. {
  35. "function": "fwrite",
  36. "params": [
  37. "@mock-stream"
  38. ],
  39. "return": 199
  40. },
  41. {
  42. "function": "stream_get_line",
  43. "params": [
  44. "@mock-stream",
  45. 1024,
  46. "\r\n\r\n"
  47. ],
  48. "return": "Invalid upgrade response"
  49. }
  50. ]