build #89
build.yaml
on: workflow_dispatch
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation tests
Matrix: Static Code Analysis
Matrix: Unit tests
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);
}
|