Test Suite #1745
test-suite.yml
on: schedule
Static Analyze
21s
Mutation Tests
2m 46s
Matrix: tests
Annotations
10 warnings
|
Mutation Tests:
src/Lexer.php#L192
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
}
protected function isTypePatternToken(string $value): bool
{
- return \substr($value, 0, 1) === '@' && \substr($value, \strlen($value) - 1, 1) === '@' && \strlen($value) > 1;
+ return (\substr($value, 0, 1) === '@' || \substr($value, \strlen($value) - 1, 1) === '@') && \strlen($value) > 1;
}
}
|
|
Mutation Tests:
src/Lexer.php#L192
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
protected function isTypePatternToken(string $value): bool
{
- return \substr($value, 0, 1) === '@' && \substr($value, \strlen($value) - 1, 1) === '@' && \strlen($value) > 1;
+ return \substr($value, 0, 1) === '@' && \substr($value, \strlen($value) - 1, 2) === '@' && \strlen($value) > 1;
}
}
|
|
Mutation Tests:
src/Lexer.php#L192
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
protected function isTypePatternToken(string $value): bool
{
- return \substr($value, 0, 1) === '@' && \substr($value, \strlen($value) - 1, 1) === '@' && \strlen($value) > 1;
+ return \substr($value, -1, 1) === '@' && \substr($value, \strlen($value) - 1, 1) === '@' && \strlen($value) > 1;
}
}
|
|
Mutation Tests:
src/Lexer.php#L187
Escaped Mutant for Mutator "GreaterThan":
@@ @@
}
protected function isExpanderNameToken(string $value): bool
{
- return \substr($value, -1) === '(' && \strlen($value) > 1;
+ return \substr($value, -1) === '(' && \strlen($value) >= 1;
}
protected function isTypePatternToken(string $value): bool
{
|
|
Mutation Tests:
src/Lexer.php#L167
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
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/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
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/Exception/UnknownTypeException.php#L14
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
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 "DecrementInteger":
@@ @@
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/PatternException.php#L11
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
{
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 "DecrementInteger":
@@ @@
{
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);
}
}
|