Skip to content

Upgrade to newest API #86

Upgrade to newest API

Upgrade to newest API #86

Triggered via push June 10, 2024 09:01
Status Failure
Total duration 1m 44s
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

19 errors and 5 warnings
Unit tests (8.1, highest)
Command "phpunit" is not defined.
Unit tests (8.1, highest)
Process completed with exit code 1.
Coding Standards (8.1, highest)
Process completed with exit code 1.
Unit tests (8.2, highest)
The job was canceled because "_8_1_highest" failed.
Dependency Analysis (8.1, highest)
The job was canceled because "_8_2_highest" failed.
Dependency Analysis (8.2, highest)
Process completed with exit code 1.
Dependency Analysis (8.1, highest)
Process completed with exit code 1.
Dependency Analysis (8.3, highest)
The job was canceled because "_8_2_highest" failed.
Dependency Analysis (8.3, highest)
Process completed with exit code 1.
Unit tests (8.3, lowest)
The job was canceled because "_8_1_highest" failed.
Unit tests (8.1, lowest)
The job was canceled because "_8_1_highest" failed.
Dependency Analysis (8.1, lowest)
The job was canceled because "_8_2_highest" failed.
Dependency Analysis (8.1, lowest)
Process completed with exit code 1.
Dependency Analysis (8.3, lowest)
The job was canceled because "_8_2_highest" failed.
Dependency Analysis (8.3, lowest)
Process completed with exit code 1.
Dependency Analysis (8.2, lowest)
The job was canceled because "_8_2_highest" failed.
Dependency Analysis (8.2, lowest)
The operation was canceled.
Unit tests (8.3, highest)
The job was canceled because "_8_1_highest" failed.
Unit tests (8.2, lowest)
The job was canceled because "_8_1_highest" failed.
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); }