Skip to content

Replace phpunit command with kyx test #14

Replace phpunit command with kyx test

Replace phpunit command with kyx test #14

Triggered via push May 31, 2025 18:26
Status Success
Total duration 1m 6s
Artifacts

ci.yml

on: push
Dependency Validation
24s
Dependency Validation
Coding Guidelines
17s
Coding Guidelines
Static Analysis
19s
Static Analysis
Coverage
22s
Coverage
Mutation Tests
30s
Mutation Tests
Matrix: Unit Tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Tests: src/Manager/ScreenManager.php#L54
Escaped Mutant for Mutator "LogicalNot": @@ @@ $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL'); - if (!$shell || !is_executable($shell)) { + if ($shell || !is_executable($shell)) { $shell = '/bin/sh'; } $process = new Process(['screen', '-L', '-Logfile', $logFile, '-dmS', $screenName, $shell, '-c', $escapedCommand], $this->getBaseDirectory(), ['APP_ENV' => $this->environment], null, 5);
Mutation Tests: src/Manager/ScreenManager.php#L50
Escaped Mutant for Mutator "UnwrapArrayMap": @@ @@ $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile); $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); - $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); + $escapedCommand = implode(' ', $screen->getCommand()); $shell = getenv('SHELL'); if (!$shell || !is_executable($shell)) { $shell = '/bin/sh';
Mutation Tests: src/Manager/ScreenManager.php#L47
Escaped Mutant for Mutator "ArrayItem": @@ @@ } $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile); - $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); + $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' > $this->environment]); $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL'); if (!$shell || !is_executable($shell)) {
Mutation Tests: src/Manager/ScreenManager.php#L46
Escaped Mutant for Mutator "ArrayItem": @@ @@ } $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile); - $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); + $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' > $screen->getCommand(), 'environment' => $this->environment]); $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL'); if (!$shell || !is_executable($shell)) {
Mutation Tests: src/Manager/ScreenManager.php#L45
Escaped Mutant for Mutator "ArrayItem": @@ @@ } $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile); - $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); + $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' > $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL'); if (!$shell || !is_executable($shell)) {
Mutation Tests: src/Manager/ScreenManager.php#L44
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile); - $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); + $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL'); if (!$shell || !is_executable($shell)) {
Mutation Tests: src/Manager/ScreenManager.php#L44
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile); - $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); + $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['command' => $screen->getCommand(), 'environment' => $this->environment]); $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL'); if (!$shell || !is_executable($shell)) {
Mutation Tests: src/Manager/ScreenManager.php#L42
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $this->filesystem->mkdir($logDir); } $logFile = $this->getLogFile($screenName); - $this->filesystem->remove($logFile); + $this->logger->info(\sprintf('Starting screen "%s"', $screen->getName()), ['screen' => $screen->getName(), 'command' => $screen->getCommand(), 'environment' => $this->environment]); $escapedCommand = implode(' ', array_map('escapeshellarg', $screen->getCommand())); $shell = getenv('SHELL');
Mutation Tests: src/Manager/ScreenManager.php#L37
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $screenName = $this->generateScreenName($screen); $logDir = $this->getLogDirectory(); if (!$this->filesystem->exists($logDir)) { - $this->filesystem->mkdir($logDir); + } $logFile = $this->getLogFile($screenName); $this->filesystem->remove($logFile);
Mutation Tests: src/Manager/ScreenManager.php#L36
Escaped Mutant for Mutator "LogicalNot": @@ @@ } $screenName = $this->generateScreenName($screen); $logDir = $this->getLogDirectory(); - if (!$this->filesystem->exists($logDir)) { + if ($this->filesystem->exists($logDir)) { $this->filesystem->mkdir($logDir); } $logFile = $this->getLogFile($screenName);