Schedule CI #236
Annotations
9 warnings
Infection (ubuntu-latest, 8.4):
src/ConfigurationFile/Printer/ToolsTable.php#L16
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
{
$this->headers = [ConfigurationFile::TOOLS, 'Commands'];
foreach ($tools as $key => $tool) {
- $this->rows[] = [$key, $tool->prepareCommand()];
+ $this->rows[] = [$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/Execution/ProcessExecution.php#L23
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$this->printer->line($this->tools[$toolName]->prepareCommand());
try {
$this->startProcess($process);
- $process->wait(function ($type, $buffer) {
- $this->printer->rawLine($buffer);
- });
+
$executionTime = $this->executionTime($process->getLastOutputTime(), $process->getStartTime());
if ($process->isSuccessful()) {
$this->printer->resultSuccess($this->getSuccessString($toolName, $executionTime));
|
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#L134
Escaped Mutant for Mutator "Break_":
@@ @@
foreach ($tools as $tool) {
if (preg_match("%{$tool}%", $ex[0])) {
$nameTool = $tool;
- break;
+ continue;
}
}
return $nameTool;
|
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/ToolAbstract.php#L157
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
*/
protected function isWindows()
{
- return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
+ return strtoupper(substr(PHP_OS, 0, 2)) === 'WIN';
}
public function getErrors(): string
{
|
Infection (ubuntu-latest, 8.4):
src/Tools/Tool/ToolAbstract.php#L167
Escaped Mutant for Mutator "FalseValue":
@@ @@
}
public function isIgnoreErrorsOnExit(): bool
{
- return $this->args[self::IGNORE_ERRORS_ON_EXIT] ?? false;
+ return $this->args[self::IGNORE_ERRORS_ON_EXIT] ?? true;
}
public static function checkTool(string $tool): bool
{
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
CodeCoverage
|
1.44 MB |
|
GitHooks Metrics - 02-02-2025
|
1.98 MB |
|
Infection
|
169 KB |
|
PhPMetrics
|
381 KB |
|