Skip to content

[7.x] Adds Symfony 7 support (#803) #22

[7.x] Adds Symfony 7 support (#803)

[7.x] Adds Symfony 7 support (#803) #22

Triggered via push October 10, 2023 15:11
Status Success
Total duration 1m 26s
Artifacts

ci.yml

on: push
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Lint composer.json
Matrix: Static Analysis
Matrix: Tests
Matrix: Lint XMLs
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Code Coverage (8.2): src/JUnit/LogMerger.php#L83
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ foreach ($suite2->suites as $suite2suiteName => $suite2suite) { if (!isset($suites[$suite2suiteName])) { $suites[$suite2suiteName] = $suite2suite; - continue; + break; } $suites[$suite2suiteName] = $this->mergeSuites($suites[$suite2suiteName], $suite2suite); }
Code Coverage (8.2): src/JUnit/LogMerger.php#L92
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ } $suites[$suite2suiteName] = $this->mergeSuites($suites[$suite2suiteName], $suite2suite); } - ksort($suites); + return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors + $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, array_merge($suite1->cases, $suite2->cases)); } }
Code Coverage (8.2): src/JUnit/LogMerger.php#L99
Escaped Mutant for Mutator "Plus": --- Original +++ New @@ @@ $suites[$suite2suiteName] = $this->mergeSuites($suites[$suite2suiteName], $suite2suite); } ksort($suites); - return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors + $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, array_merge($suite1->cases, $suite2->cases)); + return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors - $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, array_merge($suite1->cases, $suite2->cases)); } }
Code Coverage (8.2): src/JUnit/LogMerger.php#L104
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ $suites[$suite2suiteName] = $this->mergeSuites($suites[$suite2suiteName], $suite2suite); } ksort($suites); - return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors + $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, array_merge($suite1->cases, $suite2->cases)); + return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors + $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, $suite1->cases); } }
Code Coverage (8.2): src/JUnit/LogMerger.php#L104
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ $suites[$suite2suiteName] = $this->mergeSuites($suites[$suite2suiteName], $suite2suite); } ksort($suites); - return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors + $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, array_merge($suite1->cases, $suite2->cases)); + return new TestSuite($suite1->name, $suite1->tests + $suite2->tests, $suite1->assertions + $suite2->assertions, $suite1->failures + $suite2->failures, $suite1->errors + $suite2->errors, $suite1->skipped + $suite2->skipped, $suite1->time + $suite2->time, $suite1->file, $suites, $suite2->cases); } }
Code Coverage (8.2): src/JUnit/TestCase.php#L87
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ return new TestCaseWithMessage((string) $node['name'], (string) $node['class'], (string) $node['file'], (int) $node['line'], (int) $node['assertions'], (float) $node['time'], $type, $text, MessageType::failure); } if ($node->xpath('skipped') !== []) { - $text = (string) $node['name']; + $text = $node['name']; if ((string) $node['class'] !== '') { $text = sprintf("%s::%s\n\n%s:%s", $node['class'], $node['name'], $node['file'], $node['line']); }
Code Coverage (8.2): src/JUnit/TestCase.php#L88
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ } if ($node->xpath('skipped') !== []) { $text = (string) $node['name']; - if ((string) $node['class'] !== '') { + if ($node['class'] !== '') { $text = sprintf("%s::%s\n\n%s:%s", $node['class'], $node['name'], $node['file'], $node['line']); } return new TestCaseWithMessage((string) $node['name'], (string) $node['class'], (string) $node['file'], (int) $node['line'], (int) $node['assertions'], (float) $node['time'], null, $text, MessageType::skipped);
Code Coverage (8.2): src/JUnit/TestCase.php#L88
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ } if ($node->xpath('skipped') !== []) { $text = (string) $node['name']; - if ((string) $node['class'] !== '') { + if ((string) $node['class'] === '') { $text = sprintf("%s::%s\n\n%s:%s", $node['class'], $node['name'], $node['file'], $node['line']); } return new TestCaseWithMessage((string) $node['name'], (string) $node['class'], (string) $node['file'], (int) $node['line'], (int) $node['assertions'], (float) $node['time'], null, $text, MessageType::skipped);
Code Coverage (8.2): src/JUnit/Writer.php#L31
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ public function __construct() { $this->document = new DOMDocument('1.0', 'UTF-8'); - $this->document->formatOutput = true; + $this->document->formatOutput = false; } public function write(TestSuite $testSuite, string $path) : void {
Code Coverage (8.2): src/Options.php#L104
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ */ private function __construct(public readonly Configuration $configuration, public readonly string $phpunit, public readonly string $cwd, public readonly int $maxBatchSize, public readonly bool $noTestTokens, public readonly ?array $passthruPhp, public readonly array $phpunitOptions, public readonly int $processes, public readonly string $runner, public readonly string $tmpDir, public readonly bool $verbose, public readonly bool $functional) { - $this->needsTeamcity = $configuration->outputIsTeamCity() || $configuration->hasLogfileTeamcity(); + $this->needsTeamcity = !$configuration->outputIsTeamCity() || !$configuration->hasLogfileTeamcity(); } /** @param non-empty-string $cwd */ public static function fromConsoleInput(InputInterface $input, string $cwd) : self