Dropped PHP 8.0, supported PHP 8.3 #29
Annotations
10 warnings
Run infection:
examples/Brainfuck/src/Command/OutputCommand.php#L17
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function exec() : void
{
$this->runtime->outputData();
- $this->runtime->shiftCommandIndex(1);
+ $this->runtime->shiftCommandIndex(0);
}
}
|
Run infection:
examples/Brainfuck/src/Command/OutputCommand.php#L17
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function exec() : void
{
$this->runtime->outputData();
- $this->runtime->shiftCommandIndex(1);
+
}
}
|
Run infection:
examples/Brainfuck/src/Interpreter.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$tokenReader = new TokenReader($buffer, new TokenMatcher(), new TokenFactory($grammar));
$translator = new TranslationSchemeApplier(new TranslationScheme($runtime));
$parser = new Parser($grammar, $tokenReader, $translator);
- $parser->loadLookupTable(__DIR__ . "/Grammar/LookupTable.php");
+
return $parser;
}
}
|
Run infection:
examples/Brainfuck/src/Runtime.php#L39
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (0 >= $memory) {
throw new Exception("Memory amount must be positive");
}
- $this->dataList = array_fill(0, $this->memory, 0);
+ $this->dataList = array_fill(-1, $this->memory, 0);
}
public function getOutput() : string
{
|
Run infection:
examples/Brainfuck/src/Runtime.php#L80
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
* @param int $index
* @throws Exception
*/
- public function setCommandIndex(int $index) : void
+ protected function setCommandIndex(int $index) : void
{
if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) {
throw new Exception("Failed to move command pointer to position {$index}");
|
Run infection:
examples/Brainfuck/src/Runtime.php#L82
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
*/
public function setCommandIndex(int $index) : void
{
- if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) {
+ if (isset($this->commandList[$index]) && $index != $this->nextCommandIndex) {
throw new Exception("Failed to move command pointer to position {$index}");
}
$this->commandIndex = $index;
|
Run infection:
examples/Brainfuck/src/Runtime.php#L82
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
*/
public function setCommandIndex(int $index) : void
{
- if (!isset($this->commandList[$index]) && $index != $this->nextCommandIndex) {
+ if (isset($this->commandList[$index]) && !($index != $this->nextCommandIndex)) {
throw new Exception("Failed to move command pointer to position {$index}");
}
$this->commandIndex = $index;
|
Run infection:
examples/Brainfuck/src/Runtime.php#L94
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function shiftCommandIndex(int $index) : void
{
- $this->setCommandIndex($this->commandIndex + $index);
+
}
public function isValueZero() : bool
{
|
Run infection:
examples/Brainfuck/src/Runtime.php#L104
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
}
public function outputData() : void
{
- $this->output .= chr($this->dataList[$this->dataIndex]);
+ $this->output = chr($this->dataList[$this->dataIndex]);
}
/**
* @throws Exception
|
Run infection:
examples/SimpleExpr/src/Grammar/ConfigFile.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
public static function getPath() : string
{
- return __DIR__ . "/Config.php";
+ return "/Config.php";
}
}
|
The logs for this run have expired and are no longer available.
Loading