ResponseMock.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace Test\Michel\Framework\Core\Mock;
  3. use Psr\Container\ContainerInterface;
  4. use Psr\Http\Message\MessageInterface;
  5. use Psr\Http\Message\ResponseInterface;
  6. use Psr\Http\Message\StreamInterface;
  7. class ResponseMock implements ResponseInterface
  8. {
  9. public function getProtocolVersion(): string
  10. {
  11. // TODO: Implement getProtocolVersion() method.
  12. }
  13. public function withProtocolVersion(string $version): MessageInterface
  14. {
  15. // TODO: Implement withProtocolVersion() method.
  16. }
  17. public function getHeaders(): array
  18. {
  19. // TODO: Implement getHeaders() method.
  20. }
  21. public function hasHeader(string $name): bool
  22. {
  23. // TODO: Implement hasHeader() method.
  24. }
  25. public function getHeader(string $name): array
  26. {
  27. // TODO: Implement getHeader() method.
  28. }
  29. public function getHeaderLine(string $name): string
  30. {
  31. // TODO: Implement getHeaderLine() method.
  32. }
  33. public function withHeader(string $name, $value): MessageInterface
  34. {
  35. // TODO: Implement withHeader() method.
  36. }
  37. public function withAddedHeader(string $name, $value): MessageInterface
  38. {
  39. // TODO: Implement withAddedHeader() method.
  40. }
  41. public function withoutHeader(string $name): MessageInterface
  42. {
  43. // TODO: Implement withoutHeader() method.
  44. }
  45. public function getBody(): StreamInterface
  46. {
  47. // TODO: Implement getBody() method.
  48. }
  49. public function withBody(StreamInterface $body): MessageInterface
  50. {
  51. // TODO: Implement withBody() method.
  52. }
  53. public function getStatusCode(): int
  54. {
  55. // TODO: Implement getStatusCode() method.
  56. }
  57. public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface
  58. {
  59. // TODO: Implement withStatus() method.
  60. }
  61. public function getReasonPhrase(): string
  62. {
  63. // TODO: Implement getReasonPhrase() method.
  64. }
  65. }