Test Suite #1245
Annotations
13 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Get Composer Cache Directory
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Mutation Tests:
src/Exception/PatternException.php#L11
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
public static function syntaxError(string $message, Exception $previous = null) : self
{
- return new self('[Syntax Error] ' . $message, 0, $previous);
+ return new self('[Syntax Error] ' . $message, -1, $previous);
}
}
|
Mutation Tests:
src/Exception/PatternException.php#L11
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
public static function syntaxError(string $message, Exception $previous = null) : self
{
- return new self('[Syntax Error] ' . $message, 0, $previous);
+ return new self('[Syntax Error] ' . $message, 1, $previous);
}
}
|
Mutation Tests:
src/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function __construct(string $type)
{
$this->type = '@' . $type . '@';
- parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 0, null);
+ parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), -1, null);
}
public function getType() : string
{
|
Mutation Tests:
src/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
public function __construct(string $type)
{
$this->type = '@' . $type . '@';
- parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 0, null);
+ parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 1, null);
}
public function getType() : string
{
|
Mutation Tests:
src/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function __construct(string $type)
{
$this->type = '@' . $type . '@';
- parent::__construct(\sprintf('Type pattern "%s" is not supported.', $this->type), 0, null);
+
}
public function getType() : string
{
|
Mutation Tests:
src/Lexer.php#L165
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
}
return $type;
}
- protected function isStringToken(string $value) : bool
+ private function isStringToken(string $value) : bool
{
return \in_array(\substr($value, 0, 1), ['"', "'"], true);
}
|
Mutation Tests:
src/Lexer.php#L167
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
protected function isStringToken(string $value) : bool
{
- return \in_array(\substr($value, 0, 1), ['"', "'"], true);
+ return \in_array(\substr($value, -1, 1), ['"', "'"], true);
}
protected function isBooleanToken(string $value) : bool
{
|
Mutation Tests:
src/Lexer.php#L170
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return \in_array(\substr($value, 0, 1), ['"', "'"], true);
}
- protected function isBooleanToken(string $value) : bool
+ private function isBooleanToken(string $value) : bool
{
return \in_array(\strtolower($value), ['true', 'false'], true);
}
|
Mutation Tests:
src/Lexer.php#L175
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return \in_array(\strtolower($value), ['true', 'false'], true);
}
- protected function isNullToken(string $value) : bool
+ private function isNullToken(string $value) : bool
{
return \strtolower($value) === 'null';
}
|
Mutation Tests:
src/Lexer.php#L180
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
{
return \strtolower($value) === 'null';
}
- protected function extractStringValue(string $value) : string
+ private function extractStringValue(string $value) : string
{
return \trim(\trim($value, "'"), '"');
}
|
Loading