From 69154f9449c4c17c3c8cc9d62577aac3756e27e3 Mon Sep 17 00:00:00 2001 From: Carlos Herrera <18551113+caherrera@users.noreply.github.com> Date: Fri, 17 Oct 2025 15:46:39 -0300 Subject: [PATCH 1/2] Return an empty TestSuite if mainSuite is null --- src/Logging/LogInterpreter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Logging/LogInterpreter.php b/src/Logging/LogInterpreter.php index 0c5a6651..d210e039 100644 --- a/src/Logging/LogInterpreter.php +++ b/src/Logging/LogInterpreter.php @@ -88,7 +88,9 @@ public function mergeReaders(): TestSuite $this->mergeSuites($mainSuite, $otherSuite); } - assert($mainSuite !== null); + if ($mainSuite === null) { + return new TestSuite('', 0, 0, 0, 0, 0, 0, 0, 0.0, '', [], []); + } return $mainSuite; } From 02e8e56ab597b45c2276441ad14650bf387e2e45 Mon Sep 17 00:00:00 2001 From: Carlos Herrera <18551113+caherrera@users.noreply.github.com> Date: Fri, 17 Oct 2025 18:56:01 -0300 Subject: [PATCH 2/2] Fix indentation of docblock comments in ExecutableTest.php --- src/Runners/PHPUnit/ExecutableTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Runners/PHPUnit/ExecutableTest.php b/src/Runners/PHPUnit/ExecutableTest.php index 38e99dba..14031b17 100644 --- a/src/Runners/PHPUnit/ExecutableTest.php +++ b/src/Runners/PHPUnit/ExecutableTest.php @@ -101,7 +101,7 @@ private function unlinkTempFile(?string &$tempName): void $tempName = null; } - /** + /** * Returns the path to this test's JUnit temp file. * If the temp file does not exist, it will be * created. @@ -121,7 +121,7 @@ final public function deleteTempFiles(): void $this->unlinkTempFile($this->coverageFileName); } - /** + /** * Return the last process command. */ final public function getLastCommand(): string