Skip to content

Commit

Permalink
Document TestResponse methods as unssuported
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Jan 30, 2022
1 parent 6b54c96 commit 3fdd723
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/TestResponse.php
Expand Up @@ -18,38 +18,74 @@ public function __construct(
) {
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function getProtocolVersion(): string {
return '';
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function withProtocolVersion( $version ): self {
return $this;
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function getHeaders(): array {
return [];
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function hasHeader( $name ): bool {
return false;
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function getHeader( $name ): array {
return [];
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function getHeaderLine( $name ): string {
return '';
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function withHeader( $name, $value ): self {
return $this;
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function withAddedHeader( $name, $value ): self {
return $this;
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function withoutHeader( $name ): self {
return $this;
}
Expand All @@ -65,6 +101,10 @@ public function getBody(): StreamInterface {
} );
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function withBody( StreamInterface $body ): self {
return $this;
}
Expand All @@ -73,10 +113,18 @@ public function getStatusCode(): int {
return $this->statusCode;
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function withStatus( $code, $reasonPhrase = '' ): self {
return $this;
}

/**
* Unsupported
* @codeCoverageIgnore
*/
public function getReasonPhrase(): string {
return '';
}
Expand Down

0 comments on commit 3fdd723

Please sign in to comment.