Test Suite #939
Annotations
14 warnings
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessDays.php#L98
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
return $regularBusinessDay;
}
}
- throw new BusinessDayException($day->format('Y-m-d') . ' is not a business day.');
+ throw new BusinessDayException(' is not a business day.' . $day->format('Y-m-d'));
}
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessDays.php#L98
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
return $regularBusinessDay;
}
}
- throw new BusinessDayException($day->format('Y-m-d') . ' is not a business day.');
+ throw new BusinessDayException(' is not a business day.');
}
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessDays.php#L98
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
return $regularBusinessDay;
}
}
- throw new BusinessDayException($day->format('Y-m-d') . ' is not a business day.');
+ throw new BusinessDayException($day->format('Y-m-d'));
}
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessHours.php#L69
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException('Maximum days must be greater or equal 1');
}
$nextDay = $day->next();
- $daysChecked = 0;
+ $daysChecked = -1;
while ($this->nonBusinessDays->is($nextDay) || !$this->regularBusinessDays->isOpenOn($nextDay) && !$this->customBusinessDays->isOpenOn($nextDay)) {
$nextDay = $nextDay->next();
$daysChecked += 1;
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/WorkingHours/ShiftsWorkingHours.php#L31
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException('Shifts can\'t be empty');
}
\uasort($workingHours, function (LinearWorkingHours $workingHoursA, LinearWorkingHours $workingHoursB) : int {
- return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -1 : 1;
+ return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -2 : 1;
});
$this->workingHours = \array_values($workingHours);
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/WorkingHours/ShiftsWorkingHours.php#L32
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException('Shifts can\'t be empty');
}
\uasort($workingHours, function (LinearWorkingHours $workingHoursA, LinearWorkingHours $workingHoursB) : int {
- return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -1 : 1;
+ return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -1 : 2;
});
$this->workingHours = \array_values($workingHours);
}
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeType.php#L37
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if ($value instanceof DateTime || $value instanceof \DateTimeInterface) {
return $value->format($platform->getDateTimeFormatString());
}
- throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['null', 'DateTime', '\\DateTimeInterface']);
+ throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['DateTime', '\\DateTimeInterface']);
}
/**
* {@inheritdoc}
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeType.php#L45
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
*/
public function convertToPHPValue($value, AbstractPlatform $platform) : ?DateTime
{
- if ($value === null || $value instanceof DateTime) {
+ if ($value === null || false) {
return $value;
}
if (!\is_string($value)) {
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeTzType.php#L37
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if ($value instanceof DateTime || $value instanceof \DateTimeInterface) {
return $value->format($platform->getDateTimeTzFormatString());
}
- throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['null', 'DateTime', '\\DateTimeInterface']);
+ throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['DateTime', '\\DateTimeInterface']);
}
/**
* {@inheritdoc}
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeTzType.php#L45
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
*/
public function convertToPHPValue($value, AbstractPlatform $platform) : ?DateTime
{
- if ($value === null || $value instanceof DateTime) {
+ if ($value === null || false) {
return $value;
}
if (!\is_string($value)) {
|
Get Composer Cache Directory
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading