Skip to content

tests (FileReader) Add tests to check configuration file priority #239

tests (FileReader) Add tests to check configuration file priority

tests (FileReader) Add tests to check configuration file priority #239

Triggered via push February 20, 2025 18:06
Status Success
Total duration 3m 39s
Artifacts 4

schedule-ci.yml

on: push
Matrix: Code Coverage
Matrix: Infection
Matrix: PhpMetrics
Reports
6s
Reports
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Infection (ubuntu-latest, 8.4): src/ConfigurationFile/Printer/ToolsTable.php#L13
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ { public function __construct(array $tools) { - $this->headers = [ConfigurationFile::TOOLS, 'Commands']; + $this->headers = ['Commands']; foreach ($tools 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#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/ParallelLint.php#L44
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/Tools/Tool/ToolAbstract.php#L157
Escaped Mutant for Mutator "IncrementInteger": @@ @@ */ protected function isWindows() { - return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; + return strtoupper(substr(PHP_OS, 0, 4)) === '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 {
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 - 20-02-2025
1.99 MB
Infection
172 KB
PhPMetrics
381 KB