Schedule CI #238
Annotations
9 warnings
Code Coverage (ubuntu-latest, 8.4)
Cache not found for keys: Linux-8.4-102c406546fb7fd6733a465ee22302e783850cef392f9f6a9236ece409f05614, Linux-
|
Infection (ubuntu-latest, 8.4):
src/ConfigurationFile/Printer/ToolsTable.php#L15
Escaped Mutant for Mutator "Foreach_":
@@ @@
public function __construct(array $tools)
{
$this->headers = [ConfigurationFile::TOOLS, 'Commands'];
- foreach ($tools as $key => $tool) {
+ foreach ([] as $key => $tool) {
$this->rows[] = [$key, $tool->prepareCommand()];
}
}
}
|
Infection (ubuntu-latest, 8.4):
src/Tools/Process/Execution/MultiProcessesExecution.php#L46
Escaped Mutant for Mutator "CastString":
@@ @@
$this->numberOfRunnedProcesses = $this->finishExecution($th->getProcess(), $toolName, $th->getMessage());
} catch (ProcessFailedException $th) {
// dd($this->numberOfRunnedProcesses);
- $toolName = (string) array_search($th->getProcess(), $this->processes);
+ $toolName = array_search($th->getProcess(), $this->processes);
$this->numberOfRunnedProcesses = $this->finishExecution($th->getProcess(), $toolName);
} catch (Throwable $th) {
$this->errors->setError('Tool crash', $th->getMessage());
|
Infection (ubuntu-latest, 8.4):
src/Tools/Process/ProcessFake.php#L46
Escaped Mutant for Mutator "Throw_":
@@ @@
}
$this->status = self::STATUS_STARTED;
if ($this->mustRaiseException) {
- throw new ProcessFailedException($this);
+ new ProcessFailedException($this);
}
}
/**
|
Infection (ubuntu-latest, 8.4):
src/Tools/Process/ProcessFake.php#L66
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
public function getLastOutputTime(): float
{
if (!isset($this->lastTime)) {
- $mockedTime = rand(1, 700) / 13;
+ $mockedTime = rand(1, 699) / 13;
$this->lastTime = $this->starttime + $mockedTime;
}
return $this->lastTime;
|
Infection (ubuntu-latest, 8.4):
src/Tools/Process/ProcessFake.php#L159
Escaped Mutant for Mutator "TrueValue":
@@ @@
public function setFailByException(): ProcessFake
{
$this->isSuccessful = false;
- $this->mustRaiseException = true;
+ $this->mustRaiseException = false;
$nameTool = $this->extractToolName();
$this->outputFake = $this->errorOutputFake = "{$nameTool} fakes an exception";
$this->exitcode = 1;
|
Infection (ubuntu-latest, 8.4):
src/Tools/Process/ProcessFake.php#L162
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$this->mustRaiseException = true;
$nameTool = $this->extractToolName();
$this->outputFake = $this->errorOutputFake = "{$nameTool} fakes an exception";
- $this->exitcode = 1;
+ $this->exitcode = 2;
return $this;
}
public function setFailByFoundedErrors(): ProcessFake
|
Infection (ubuntu-latest, 8.4):
src/Tools/Tool/SecurityChecker.php#L39
Escaped Mutant for Mutator "Continue_":
@@ @@
$command = '';
foreach (self::ARGUMENTS as $option) {
if (empty($this->args[$option])) {
- continue;
+ break;
}
switch ($option) {
case self::EXECUTABLE_PATH_OPTION:
|
Infection (ubuntu-latest, 8.4):
src/Utils/Storage.php#L46
Escaped Mutant for Mutator "FalseValue":
@@ @@
* @return int|bool
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
*/
- public static function put($path, $contents, $lock = false)
+ public static function put($path, $contents, $lock = true)
{
return FacadesStorage::disk(self::$disk)->put($path, $contents, $lock = false);
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
CodeCoverage
|
1.44 MB |
|
GitHooks Metrics - 16-02-2025
|
1.98 MB |
|
Infection
|
167 KB |
|
PhPMetrics
|
381 KB |
|