Repository navigation
Fix PHPUnit warning in FormatterTest #745
Annotations
1 error, 10 warnings, and 1 notice
|
Mutation tests with PHP 8.2
Process completed with exit code 1.
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L89
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
],
[
'type' => TokenType::Bool,
- 'flags' => 0,
+ 'flags' => 1,
'html' => 'sql-atom',
'cli' => "\x1b[36m",
'function' => 'strtoupper',
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L89
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
],
[
'type' => TokenType::Bool,
- 'flags' => 0,
+ 'flags' => -1,
'html' => 'sql-atom',
'cli' => "\x1b[36m",
'function' => 'strtoupper',
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L75
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
],
[
'type' => TokenType::Keyword,
- 'flags' => 0,
+ 'flags' => 1,
'html' => 'sql-keyword',
'cli' => "\x1b[95m",
'function' => 'strtoupper',
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L49
Escaped Mutant for Mutator "Continue_":
@@ @@
}
$formats[$i] = $new;
- continue 2;
+ break;
}
$formats[] = $new;
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L49
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
$formats[$i] = $new;
- continue 2;
+ continue 1;
}
$formats[] = $new;
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L45
Escaped Mutant for Mutator "Continue_":
@@ @@
foreach ($newFormats as $new) {
foreach ($formats as $i => $original) {
if ($new['type'] !== $original['type'] || $original['flags'] !== $new['flags']) {
- continue;
+ break;
}
$formats[$i] = $new;
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L44
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
@@ @@
{
foreach ($newFormats as $new) {
foreach ($formats as $i => $original) {
- if ($new['type'] !== $original['type'] || $original['flags'] !== $new['flags']) {
+ if (!($new['type'] !== $original['type']) || !($original['flags'] !== $new['flags'])) {
continue;
}
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L44
Escaped Mutant for Mutator "NotIdentical":
@@ @@
{
foreach ($newFormats as $new) {
foreach ($formats as $i => $original) {
- if ($new['type'] !== $original['type'] || $original['flags'] !== $new['flags']) {
+ if ($new['type'] === $original['type'] || $original['flags'] !== $new['flags']) {
continue;
}
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L43
Escaped Mutant for Mutator "Foreach_":
@@ @@
private static function mergeFormats(array $formats, array $newFormats): array
{
foreach ($newFormats as $new) {
- foreach ($formats as $i => $original) {
+ foreach ([] as $i => $original) {
if ($new['type'] !== $original['type'] || $original['flags'] !== $new['flags']) {
continue;
}
-
$formats[$i] = $new;
continue 2;
}
|
|
Mutation tests with PHP 8.2:
src/Utils/FormattingOptions.php#L22
Escaped Mutant for Mutator "Ternary":
@@ @@
* @PARAM list<array{type: TokenType, flags: int, html: string, cli: string, function: callable|''}> $formats
*/
public function __construct(
- public readonly string $type = PHP_SAPI === 'cli' ? 'cli' : 'text',
+ public readonly string $type = PHP_SAPI === 'cli' ? 'text' : 'cli',
string|null $lineEnding = null,
string|null $indentation = null,
public bool $removeComments = false,
|
|
Mutation tests with PHP 8.2
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|