Skip to content

Add scripts

Add scripts #88

Triggered via push June 10, 2024 09:03
Status Success
Total duration 1m 41s
Artifacts

build.yaml

on: push
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation tests
Matrix: Static Code Analysis
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

5 warnings
Mutation tests (8.3, highest): src/Client/Client.php#L86
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $request = $this->getRequestFactory()->createRequest('GET', $url)->withHeader('Accept', 'application/json'); $this->lastRequest = $request; $this->lastResponse = $this->getHttpClient()->sendRequest($this->lastRequest); - self::assertStatusCode($this->lastResponse); + return $this->lastResponse; } public function servicePoints() : ServicePointsEndpointInterface
Mutation tests (8.3, highest): src/Client/Client.php#L95
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { if (null === $this->pickupPointsEndpoint) { $this->pickupPointsEndpoint = new ServicePointsEndpoint($this, $this->getMapperBuilder(), 'servicepoints'); - $this->pickupPointsEndpoint->setLogger($this->logger); + } return $this->pickupPointsEndpoint; }
Mutation tests (8.3, highest): src/Client/Client.php#L159
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ private static function assertStatusCode(ResponseInterface $response) : void { $statusCode = $response->getStatusCode(); - if ($statusCode >= 200 && $statusCode < 300) { + if ($statusCode >= 200 && $statusCode <= 300) { return; } NotAuthorizedException::assert($response);
Mutation tests (8.3, highest): src/Client/Client.php#L159
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ private static function assertStatusCode(ResponseInterface $response) : void { $statusCode = $response->getStatusCode(); - if ($statusCode >= 200 && $statusCode < 300) { + if ($statusCode >= 200 || $statusCode < 300) { return; } NotAuthorizedException::assert($response);
Mutation tests (8.3, highest): src/Exception/ResponseAwareException.php#L17
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ public function __construct(ResponseInterface $response) { $message = sprintf('The status code was: %d.', $response->getStatusCode()); - $body = (string) $response->getBody(); + $body = $response->getBody(); if ('' !== $body) { $message .= sprintf(' The body was: %s.', $body); }