feat: Remove dependency on thecodingmaching/safe #265
Annotations
1 error and 3 warnings
Run tests and mutation testing
Process completed with exit code 2.
|
Run tests and mutation testing:
src/Test/BaseMakefileTestCase.php#L176
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
try {
return $execute();
} finally {
- self::safeChdir($currentWorkingDirectory);
+
}
}
private static function safeChdir(string $directory): void
|
Run tests and mutation testing:
src/Test/BaseMakefileTestCase.php#L198
Escaped Mutant for Mutator "FalseValue":
@@ @@
private static function safeGetCurrentWorkingDirectory(): string
{
$result = getcwd();
- if (false === $result) {
+ if (true === $result) {
throw new RuntimeException('Could not get the current working directory.');
}
return $result;
|
Run tests and mutation testing:
src/Test/BaseMakefileTestCase.php#L225
Escaped Mutant for Mutator "FalseValue":
@@ @@
private static function safeShellExec(string $command): string
{
$result = shell_exec($command);
- if (null === $result || false === $result) {
+ if (null === $result || true === $result) {
throw new RuntimeException(sprintf('Could not execute the command "%s".', $command));
}
return $result;
}
}
|
Loading