Replace phpunit command with kyx test #14
ci.yml
on: push
Dependency Validation
24s
Coding Guidelines
17s
Matrix: Unit Tests
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);
|