Skip to content

wip

wip #15

Triggered via push October 21, 2023 13:21
Status Failure
Total duration 1m 34s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 20 warnings
PHP 8.1 test on ubuntu-latest
Process completed with exit code 1.
PHP 8.2 test on ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
PHP 8.2 test on ubuntu-latest
The operation was canceled.
PHP 8.1 test on ubuntu-latest: src/Html.php#L105
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ foreach ($this->spec->servers() as $server) { $search = ['%url%', '%description%']; $replace = [$server->url, $server->description]; - $servers .= str_replace($search, $replace, $this->serverHtml); + $servers = str_replace($search, $replace, $this->serverHtml); } $servers = str_replace('%servers%', $servers, $this->serversHtml); $this->html = str_replace('%servers.html%', $servers, $this->html);
PHP 8.1 test on ubuntu-latest: src/Html.php#L162
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ /** @var string $description */ $description = $variable['description'] ?? ''; $replace = [str_replace('%name%', "{{$name}}", $this->variableNameHtml), $this->description('Type', $this->type($type)), $this->description('Regex', $this->code($regex)), $this->description('Description', $description)]; - $return .= str_replace($search, $replace, $this->variableHtml); + $return = str_replace($search, $replace, $this->variableHtml); } return $return === '' ? '' : str_replace('%variables%', $return, $this->variablesHtml); }
PHP 8.1 test on ubuntu-latest: src/Html.php#L180
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ $properties = ''; $map = arrayUnsetKey($string, 'required', 'type'); foreach ($map as $property => $value) { - $property = (string) $property; + $property = $property; $properties .= $this->description($property, (string) ($value ?? '')); } /** @var string $type */
PHP 8.1 test on ubuntu-latest: src/Html.php#L183
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ $map = arrayUnsetKey($string, 'required', 'type'); foreach ($map as $property => $value) { $property = (string) $property; - $properties .= $this->description($property, (string) ($value ?? '')); + $properties .= $this->description($property, $value ?? ''); } /** @var string $type */ $type = $string['type'];
PHP 8.1 test on ubuntu-latest: src/Html.php#L190
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return = $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); } return $return; }
PHP 8.1 test on ubuntu-latest: src/Html.php#L192
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return .= $this->description($name, $this->optional($required) . $this->type($type) . $this->descriptionList($properties)); } return $return; }
PHP 8.1 test on ubuntu-latest: src/Html.php#L192
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return .= $this->description($name, $this->type($type) . $this->descriptionList($properties)); } return $return; }
PHP 8.1 test on ubuntu-latest: src/Html.php#L192
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return .= $this->description($name, $this->type($type) . $this->descriptionList($properties) . $this->optional($required)); } return $return; }
PHP 8.1 test on ubuntu-latest: src/Html.php#L213
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $return = ''; if ($type === '') { foreach ($body as $property => $value) { - $required = $value['required'] ?? true; + $required = $value['required'] ?? false; $described = $this->body($value); $return .= $this->descriptionList($this->description($property, $this->type($value['type']) . $this->optional($required)) . $described); }
PHP 8.1 test on ubuntu-latest: src/Html.php#L304
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private function request(array $request) : string { $search = ['%headers%', '%query%', '%body%']; - $headers = $this->headers($request['headers'] ?? []); + $headers = $this->headers([] ?? $request['headers']); $replace = [$this->description('Headers', $headers), '', '']; $query = $this->query($request['query'] ?? []); if ($query !== '') {
PHP 8.2 test on ubuntu-latest: src/Html.php#L105
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ foreach ($this->spec->servers() as $server) { $search = ['%url%', '%description%']; $replace = [$server->url, $server->description]; - $servers .= str_replace($search, $replace, $this->serverHtml); + $servers = str_replace($search, $replace, $this->serverHtml); } $servers = str_replace('%servers%', $servers, $this->serversHtml); $this->html = str_replace('%servers.html%', $servers, $this->html);
PHP 8.2 test on ubuntu-latest: src/Html.php#L162
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ /** @var string $description */ $description = $variable['description'] ?? ''; $replace = [str_replace('%name%', "{{$name}}", $this->variableNameHtml), $this->description('Type', $this->type($type)), $this->description('Regex', $this->code($regex)), $this->description('Description', $description)]; - $return .= str_replace($search, $replace, $this->variableHtml); + $return = str_replace($search, $replace, $this->variableHtml); } return $return === '' ? '' : str_replace('%variables%', $return, $this->variablesHtml); }
PHP 8.2 test on ubuntu-latest: src/Html.php#L180
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ $properties = ''; $map = arrayUnsetKey($string, 'required', 'type'); foreach ($map as $property => $value) { - $property = (string) $property; + $property = $property; $properties .= $this->description($property, (string) ($value ?? '')); } /** @var string $type */
PHP 8.2 test on ubuntu-latest: src/Html.php#L183
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ $map = arrayUnsetKey($string, 'required', 'type'); foreach ($map as $property => $value) { $property = (string) $property; - $properties .= $this->description($property, (string) ($value ?? '')); + $properties .= $this->description($property, $value ?? ''); } /** @var string $type */ $type = $string['type'];
PHP 8.2 test on ubuntu-latest: src/Html.php#L190
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return = $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); } return $return; }
PHP 8.2 test on ubuntu-latest: src/Html.php#L192
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return .= $this->description($name, $this->optional($required) . $this->type($type) . $this->descriptionList($properties)); } return $return; }
PHP 8.2 test on ubuntu-latest: src/Html.php#L192
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return .= $this->description($name, $this->type($type) . $this->descriptionList($properties)); } return $return; }
PHP 8.2 test on ubuntu-latest: src/Html.php#L192
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $type = $string['type']; /** @var boolean $required */ $required = $string['required']; - $return .= $this->description($name, $this->type($type) . $this->optional($required) . $this->descriptionList($properties)); + $return .= $this->description($name, $this->type($type) . $this->descriptionList($properties) . $this->optional($required)); } return $return; }
PHP 8.2 test on ubuntu-latest: src/Html.php#L213
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $return = ''; if ($type === '') { foreach ($body as $property => $value) { - $required = $value['required'] ?? true; + $required = $value['required'] ?? false; $described = $this->body($value); $return .= $this->descriptionList($this->description($property, $this->type($value['type']) . $this->optional($required)) . $described); }
PHP 8.2 test on ubuntu-latest: src/Html.php#L304
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ private function request(array $request) : string { $search = ['%headers%', '%query%', '%body%']; - $headers = $this->headers($request['headers'] ?? []); + $headers = $this->headers([] ?? $request['headers']); $replace = [$this->description('Headers', $headers), '', '']; $query = $this->query($request['query'] ?? []); if ($query !== '') {