Skip to content

Replace data response by data stream (big refactoring) #390

Replace data response by data stream (big refactoring)

Replace data response by data stream (big refactoring) #390

Triggered via pull request January 26, 2026 10:46
@samdarksamdark
synchronize #107
refactor
Status Success
Total duration 50s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

8 warnings
mutation / PHP 8.5-ubuntu-latest: src/Formatter/XmlDataResponseFormatter.php#L246
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ } if (is_float($value)) { - return NumericHelper::normalize($value); + } return (string) $value;
mutation / PHP 8.5-ubuntu-latest: src/Formatter/XmlDataResponseFormatter.php#L107
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ private function buildXml(DOMDocument $dom, $element, mixed $data): void { if (empty($data)) { - return; + } if (is_array($data) || ($data instanceof Traversable && !($data instanceof XmlDataInterface))) {
mutation / PHP 8.5-ubuntu-latest: src/DataResponse.php#L191
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $new = clone $this; $new->responseFormatter = $responseFormatter; - $new->resetFormatted(); + return $new; }
mutation / PHP 8.5-ubuntu-latest: src/DataResponse.php#L180
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $new = clone $this; $new->response = $this->response->withStatus($code, $reasonPhrase); - $new->resetFormatted(); + return $new; }
mutation / PHP 8.5-ubuntu-latest: src/DataResponse.php#L172
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $new = clone $this; $new->response = $this->response->withProtocolVersion($version); - $new->resetFormatted(); + return $new; }
mutation / PHP 8.5-ubuntu-latest: src/DataResponse.php#L156
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $new = clone $this; $new->response = $this->response->withHeader($name, $value); - $new->resetFormatted(); + return $new; }
mutation / PHP 8.5-ubuntu-latest: src/DataResponse.php#L145
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $new = clone $this; $new->response = $this->response->withBody($body); - $new->resetFormatted(); + $new->dataStream = $body; $new->forcedBody = true; $new->data = null;
mutation / PHP 8.5-ubuntu-latest: src/DataResponse.php#L137
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $new = clone $this; $new->response = $this->response->withAddedHeader($name, $value); - $new->resetFormatted(); + return $new; }