send-broken-write.json 855 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [
  2. {
  3. "function": "get_resource_type",
  4. "params": [
  5. "@mock-stream"
  6. ],
  7. "return": "stream"
  8. },
  9. {
  10. "function": "fwrite",
  11. "params": [
  12. "@mock-stream"
  13. ],
  14. "return": 18
  15. },
  16. {
  17. "function": "get_resource_type",
  18. "params": [
  19. "@mock-stream"
  20. ],
  21. "return": "stream"
  22. },
  23. {
  24. "function": "stream_get_meta_data",
  25. "params": [
  26. "@mock-stream"
  27. ],
  28. "return": {
  29. "timed_out": false,
  30. "blocked": true,
  31. "eof": true,
  32. "stream_type": "tcp_socket\/ssl",
  33. "mode": "r+",
  34. "unread_bytes": 2,
  35. "seekable": false
  36. }
  37. },
  38. {
  39. "function": "fclose",
  40. "params": [],
  41. "return": true
  42. }
  43. ]