From 8de379044b111b28f5c2bc4179cca62191fc3faa Mon Sep 17 00:00:00 2001 From: teiling88 Date: Thu, 15 Feb 2024 17:35:01 +0100 Subject: [PATCH] 47 - fix unit tests --- tests/Helper/ApiDummyResponse.php | 45 ++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/tests/Helper/ApiDummyResponse.php b/tests/Helper/ApiDummyResponse.php index 28099b8..7459613 100644 --- a/tests/Helper/ApiDummyResponse.php +++ b/tests/Helper/ApiDummyResponse.php @@ -1,8 +1,10 @@ responseXml = $responseXml; } - public function getStatusCode() + public function getProtocolVersion(): string { + // TODO: Implement getProtocolVersion() method. } - public function withStatus($code, $reasonPhrase = '') + public function withProtocolVersion(string $version): MessageInterface { + // TODO: Implement withProtocolVersion() method. } - public function getReasonPhrase() + public function getHeaders(): array { + // TODO: Implement getHeaders() method. } - public function getProtocolVersion() + public function hasHeader(string $name): bool { + // TODO: Implement hasHeader() method. } - public function withProtocolVersion($version) + public function getHeader(string $name): array { + // TODO: Implement getHeader() method. } - public function getHeaders() + public function getHeaderLine(string $name): string { + // TODO: Implement getHeaderLine() method. } - public function hasHeader($name) + public function withHeader(string $name, $value): MessageInterface { + // TODO: Implement withHeader() method. } - public function getHeader($name) + public function withAddedHeader(string $name, $value): MessageInterface { + // TODO: Implement withAddedHeader() method. } - public function getHeaderLine($name) + public function withoutHeader(string $name): MessageInterface { + // TODO: Implement withoutHeader() method. } - public function withHeader($name, $value) + public function getBody(): StreamInterface { + // TODO: Implement getBody() method. } - public function withAddedHeader($name, $value) + public function withBody(StreamInterface $body): MessageInterface { + // TODO: Implement withBody() method. } - public function withoutHeader($name) + public function getStatusCode(): int { + // TODO: Implement getStatusCode() method. } - public function getBody() + public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface { - return $this->responseXml; + // TODO: Implement withStatus() method. } - public function withBody(StreamInterface $body) + public function getReasonPhrase(): string { + return ''; } }