CLI-1365: Warn when logs need to be created #2585
Annotations
1 error and 6 warnings
Mutation Testing
Process completed with exit code 1.
|
Mutation Testing:
src/EventListener/ExceptionListener.php#L103
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$this->helpMessages[] = "You can learn more about Cloud Platform API at https://docs.acquia.com/cloud-platform/develop/api/";
}
}
- if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
+ if ($error instanceof TypeError || str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}
if (!empty($this->helpMessages)) {
|
Mutation Testing:
src/EventListener/ExceptionListener.php#L103
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$this->helpMessages[] = "You can learn more about Cloud Platform API at https://docs.acquia.com/cloud-platform/develop/api/";
}
}
- if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
+ if (true && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}
if (!empty($this->helpMessages)) {
|
Mutation Testing:
src/EventListener/ExceptionListener.php#L103
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$this->helpMessages[] = "You can learn more about Cloud Platform API at https://docs.acquia.com/cloud-platform/develop/api/";
}
}
- if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
+ if (false && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}
if (!empty($this->helpMessages)) {
|
Mutation Testing:
src/EventListener/ExceptionListener.php#L103
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
$this->helpMessages[] = "You can learn more about Cloud Platform API at https://docs.acquia.com/cloud-platform/develop/api/";
}
}
- if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
+ if (!$error instanceof TypeError && !str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}
if (!empty($this->helpMessages)) {
|
Mutation Testing:
src/EventListener/ExceptionListener.php#L103
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
$this->helpMessages[] = "You can learn more about Cloud Platform API at https://docs.acquia.com/cloud-platform/develop/api/";
}
}
- if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
+ if (!($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response'))) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}
if (!empty($this->helpMessages)) {
|
Mutation Testing:
src/EventListener/ExceptionListener.php#L103
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$this->helpMessages[] = "You can learn more about Cloud Platform API at https://docs.acquia.com/cloud-platform/develop/api/";
}
}
- if ($error instanceof TypeError && str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
+ if ($error instanceof TypeError && !str_contains($error->getMessage(), 'AcquiaCloudApi\\Response')) {
$newErrorMessage = 'Cloud Platform API returned an unexpected data type. This could be due to missing permissions or a problem with your Cloud Platform application.';
}
if (!empty($this->helpMessages)) {
|